• Resolved mungbean

    (@mungbean)


    I am trying to display pods via shortcode based on a “where” rule for category slug and post status. The where clause functions fine for just the category slug, but not when I use an “and” to include the post status parameter.

    My shortcode syntax is as follows:

    [pods name="pod_block" template="pod_template" where= "category.slug= 'slug' AND post_status = 'Published'"][/pods]

    Currently, it is not returning anything, when in fact, I have verified that the test pod does have the matching category slug and published post status.

    Also, on a secondary note, my custom post only has three post statuses – published, pending review, and draft. Is there a way to add additional statuses, such as “unpublished”?

    Thanks!

Viewing 8 replies - 1 through 8 (of 8 total)
Viewing 8 replies - 1 through 8 (of 8 total)
  • The topic ‘Shortcode – category and post status’ is closed to new replies.