WordPress.org

Ready to get started?Download WordPress

Forums

All posts showing on all categories! (1 post)

  1. fire-enigmax
    Member
    Posted 7 years ago #

    Hi guys,

    I am having a little problem. I am using (or trying to use) WP as a CMS and have set each 'page' as a category so allow for new posts to be created/edited etc (the actual content of the pages). Within each of the categories (and on the index.php page) I have used the code to force the posts to appear in Ascending order rather than the normal order of newest to top. Also I have used the script to force the index page to only show posts from category 3 (my home page category) --Scripts below--

    <?php query_posts('order=ASC);?>
    and
    <?php if (!in_category('3')) continue: ?>

    The problem is that when I have both of these working if i go to any of the category sections then ALL the posts are shown on every category (they dont change order or anything).

    Have I done something wrong?

    Any help would be great!!!

Topic Closed

This topic has been closed to new replies.

About this Topic