• Hello,

    How can I have two categories “All categories” and New posts”. I already have “All categories” which shows all posts sorted on rating. Now I would like to have a category “New posts” which shows all the posts but not sorted with rating.

    I am using the WP-postrating plugin and I have the code:

    <?php if(!is_front_page()) query_posts($query_string.’&r_sortby=highest_rated&r_orderby=desc’); ?>

    in my index.php file for the default theme. My idea is that it should only sort when accessing index.php. So basically I am looking for how I can create a newest.php which has the same content as index.php (maybe by an include?) and then how I can create a category link for this page.

    Any ideas?

Viewing 1 replies (of 1 total)
  • Actually, with the help of Template Hierarchy you will see that you might create a Category Template called category.php that would display your category archives. If you were using the WordPress Default Theme I would tell you to copy the ‘unmodified’ archive.php to category.php for a solution.

Viewing 1 replies (of 1 total)

The topic ‘Two categories: “All categories” and “New posts”’ is closed to new replies.