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

  1. scooterschalk
    Posted 5 years ago #

    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


  2. Michael
    Forum Moderator
    Posted 5 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