Support » Plugin: Pods - Custom Content Types and Fields » Template categories question

  • Resolved wpress2010

    (@wpress2010)


    I have a template where I first did this, to show all items which had a specific category of “sold” :

    [pods name=”property” where=”category.name = ‘sold'” template=”Sold Template” orderby=”post_date DESC” shortcodes=1]

    No problems there.

    But now I want to show all items that belong to TWO different categories, “sold” and “deluxe” – they must belong to BOTH categories. I tried this:

    [pods name=”property” where=”category.name = ‘sold’ AND category.name=’deluxe'” template=”Sold template” orderby=”post_date DESC” shortcodes=1]

    But that returns items that belong to the ‘sold’ category, and then ones that belong to the ‘deluxe’ category – NOT just items that belong to BOTH those two categories. Does anyone know the proper syntax here?

Viewing 2 replies - 1 through 2 (of 2 total)
Viewing 2 replies - 1 through 2 (of 2 total)
  • You must be logged in to reply to this topic.