Ninja Page Categories and Tags
/?cat=## displaying only posts (5 posts)

  1. fencer_x
    Posted 2 years ago #

    I recently installed this plugin, as it looks like it's just what I need to make better use of the many pages I use on my site.

    However, after appending the category in question to 2 pages and 1 post, only the 1 post shows up under http://website.com/?cat=##

    Have I missed something somewhere? I see a few others have had similar issues, but I can't seem to parse just how they resolved these issues. Any suggestions would be greatly appreciated!


  2. James Laws
    The WP Ninjas
    Plugin Author

    Posted 2 years ago #

    Did you check the box in the plugin settings to include pages in the category and tags archive pages?

    Also, this will only modify the main archive query. If you theme is using a custom query to display these category listings Ninja Pages won't know about them and can't include pages in those.

  3. fencer_x
    Posted 2 years ago #


    Yes, I've got the box checked--so I assume my theme must be the culprit. Alas--seems I'll just have to populate the widget manually.

  4. jeanmichellsouber
    Posted 2 years ago #

    Friend, you just have to insert "post_type=page" to query pages instead posts.

  5. jeanmichellsouber
    Posted 2 years ago #

    Or... you can just set both types as an array to show pages and posts with the category X...

    Like this:

    <?php query_posts(array('post_type'=> array('post', 'page'), 'category_name' => 'X', 'showposts' => '-1')); ?>

Topic Closed

This topic has been closed to new replies.

About this Plugin

  • Ninja Page Categories and Tags
  • Frequently Asked Questions
  • Support Threads
  • Reviews

About this Topic


No tags yet.