ThemeShaper Forums » Thematic

[closed]

Change number of posts in tag-loop?

(1 post)
  • Started 11 years ago by Oskar Rough
  • This topic is not resolved
  1. Oskar Rough
    Member

    Hi,

    How am I to change the number of posts shown with the tag-loop? I'm able to change it with the following:

    function my_tag_archive_post_limit() {
      if (is_tag()) {
        	$paged = (get_query_var('paged')) ? get_query_var('paged') : -1;
         	query_posts('&showposts=-1 &paged=' . $paged );
        	$wp_query->is_archive = true; $wp_query->is_home = false;
      }
    }
    add_action('thematic_above_tagloop','my_tag_archive_post_limit');

    However, that also removes the queried tag so it shows all posts instead of only posts with the selected tag?

    Posted 11 years ago #

RSS feed for this topic

Topic Closed

This topic has been closed to new replies.