WP Tiles
[resolved] Category posts_query= (3 posts)

  1. Onsia
    Posted 3 years ago #

    When I add in the (posts_query='category=news') the tiles don't list my desired category. The drop down for the default works but I would like to use specific categories on different pages. All other (posts_query=) seem to work so far but not the category=. Is there a specific sequence the short codes need to be listed in? What am I missing?


  2. Mike Martel
    Plugin Author

    Posted 3 years ago #

    Hi Onsia, to show posts from a certain category, use the category ID instead of the slug. The easiest way to find to the ID (I think) is to edit your category and note the value in the url.

    So, go to Posts->Categories, and click on the category you want the ID of. Now you'll get a link similar to this:

    tag_ID is the category ID (so 3, in this case). In the shortcode you can now use this ID as follows:
    [wp-tiles posts_query='category=3']


  3. atkantor
    Posted 3 years ago #

    We use a small, great plugin called reveal-ID. http://www.schloebe.de/wordpress/reveal-ids-for-wp-admin-25-plugin/

    Have had it on from almost day one [so that's a few years] and never let us down. You see the ID when you look at any list -- posts, categories, pages, etc.

Topic Closed

This topic has been closed to new replies.

About this Plugin

  • WP Tiles
  • Frequently Asked Questions
  • Support Threads
  • Reviews

About this Topic