Using “Where” in pods shortcode
-
I am trying to display all my elements for a custom post type called team_member, in this way:
[pods name="team_member"] ... [/pods]And it works ok :).
But if I try:
[pods name="team_member" where="member_type.name = 'Affiliate'"] ... [/pods]Where member_type is a taxonomy connected to team_member. The term with name Affiliate exist. And I get this error: “Pods Embed Error: WHERE contains SQL that is not allowed.”
I have strictly followed this page example: https://docs.pods.io/displaying-pods/pods-shortcode/
[pods name="podsname" where="taxonomy_name.slug = 'term slug'"]{@post_title}[/pods]Any help will be appreciated. Thanks a lot.
Viewing 4 replies - 1 through 4 (of 4 total)
Viewing 4 replies - 1 through 4 (of 4 total)
The topic ‘Using “Where” in pods shortcode’ is closed to new replies.
