ThemeShaper Forums » Thematic

Suggestion: Option for posts_per_page on archive-pages

(2 posts)
  • Started 12 years ago by mkalina
  • Latest reply from Pushee
  • This topic is not a support question
  1. It would be really nice to have an option in the thematic-theme to manipulate the posts_per_page-variable for archive-pages. With the current files (archive.php, category.php, and tag.php) it is not more than this:

    archive: get_header(); query_posts('posts_per_page=NUMBER_OF_POSTS');
    category: get_header(); query_posts('posts_per_page=NUMBER_OF_POSTS&cat=' . $cat);
    tag: get_header(); query_posts('posts_per_page=NUMBER_OF_POSTS&tag=' . $tag);

    Defining the number of posts for these three pages (or, eventually for all the paged-pages) would make it much easier not to always add half of the files to one's own theme!

    Posted 12 years ago #
  2. Hello,
    I tried changing the number of posts per category page using :
    get_header(); query_posts('posts_per_page=5&cat=' . $cat);
    but now my problem is that even if in the navigation array i got a link for older posts , i still can't reach them. If i click on on the befor link i get to the same page with 5 same posts.

    Posted 12 years ago #

RSS feed for this topic


You must log in to post.