WHERE contains SQL that is not allowed
-
Hi there,
I am trying to get pods to only display if the date is today or in the future. When I try to include the relevant code in a shortcode on the page, I get the error: “Pods Embed Error: WHERE contains SQL that is not allowed.”
The shortcode is:
[pods name="event" template="events" orderby="date_and_time.meta_value ASC" where="CAST( date_and_time.meta_value AS DATETIME ) >= NOW()" ]It works perfectly fine without the where= SQL component.
I have reviewed other posts here and elsewhere but the solution proposed does not resolve my issue.
To clarify, I have tried:
- Allowing “unrestricted” and ” restricted” under “Allow SQL clauses to be used in Dynamic Features” in Pods Admin > Settings > Security section
- Allowing “unrestricted” in the specific pod option
- Clearing the Pods cache
- Turned off all caches for the website
- Clearing browser cache
- Trying multiple browsers
The pod is public and dynamic features are enabled.
The page I need help with: [log in to see the link]
You must be logged in to reply to this topic.