WordPress.org

Forums

WP Tiles
[resolved] Use images from posts in one category (3 posts)

  1. mdunham
    Member
    Posted 1 year ago #

    I want to show the images from one post category as a gallery using WP Tiles. I have a category named jazz, so I think the short code should be:

    [wp-tiles posts_query='category=jazz']

    But, when I use that shortcode, all the images from all posts in any category show in the tiles up to the number selected on the defaults page.

    As a test, I tried setting the default category to jazz using the simple shortcode without arguments and that works. So, it appears that I am not using the posts query arguments correctly. I want to be able to set up recent galleries for different post categories so I can't depend on the default setting alone.

    What am I doing wrong?

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

  2. Mike Martel
    Member
    Plugin Author

    Posted 1 year ago #

    Hi there!

    WP Tiles does not accept the category slug for an argument, only the category id. See the answer to this question for info on how to do it.

    Cheers,
    Mike

  3. mdunham
    Member
    Posted 1 year ago #

    Thanks Mike!

    Very helpful

Topic Closed

This topic has been closed to new replies.

About this Plugin

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

About this Topic