WordPress.org

Ready to get started?Download WordPress

Forums

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

  1. Onsia
    Member
    Posted 1 year 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?
    http://newmillenniummusic.com/news/

    http://wordpress.org/extend/plugins/wp-tiles/

  2. Mike
    Member
    Plugin Author

    Posted 1 year 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:
    http://yourwebsi.te/wp-admin/edit-tags.php?action=edit&taxonomy=category&tag_ID=3&post_type=post

    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']

    Cheers,
    Mike

  3. atkantor
    Member
    Posted 1 year 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

About this Topic