Paged Loop with current taxonomies…
-
Hello everybody,
I hope somebody could help me. I think it’s the easiest way when I just show you what i tried to do:
<?php $paged = (get_query_var('paged')) ? get_query_var('paged') : 1; $term = get_term_by( 'slug', get_query_var( 'term' ), get_query_var( 'taxonomy' ) ); $args=array( 'post_type' => 'work', 'post_status' => 'publish', 'posts_per_page' => 2, 'caller_get_posts'=> 1, 'paged'=>$paged, ); query_posts($args); if( have_posts() ) { while (have_posts()) : the_post(); ?> <div class="workposts"> <div><a href="<?php the_permalink() ?>" title="<?php the_title() ?>" class="linked"><?php $image = get_post_meta($post->ID, "Image1", true); echo $image; ?></a></div> <h3><a href="<?php the_permalink() ?>" title="<?php the_title() ?>" class="linked"><?php the_title() ?></a></h3> <?php $subtitle = get_post_meta($post->ID, "Subtitle", true); echo $subtitle; ?> </div> <?php endwhile; } ?>
Why does this not work out?? Please help me!
Thank you soooo much!!!
Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
- The topic ‘Paged Loop with current taxonomies…’ is closed to new replies.