WordPress.org

Ready to get started?Download WordPress

Forums

Can't post in more than one category with Wp-Query... (2 posts)

  1. scooterschalk
    Member
    Posted 3 years ago #

    Hi
    I created multiple posts pages through wp-query.
    I created templates from the index php and added the code below:
    <?php query_posts('cat=-1, -2, -3, -4, -5, -6, -8, -9, -10, -11'); ?>

    All my posts shows up in the default index.php and only those relevant to each category in the relevant templates - perfect!

    My problem: When I submit a post to more than one category, it will show up in the index.php but in neither og the templates it is suppose to show up.

    url: http://www.chrisplaysgolf.com

    regards

  2. alchymyth
    Forum Moderator
    Posted 3 years ago #

    what was the reason in the first place to exclude the categories in the templates, instead of including a single category in each one?

Topic Closed

This topic has been closed to new replies.

About this Topic