Shortcode with Where clause default value
-
I am currently developing a site using PODS and I have created a page which I’m adding a list of items in. These POD items have a relationship field in and I’d like to filter the list down based on this field and a querystring value.
I have have made the required updates to wp-config and I can see the filtering working, however I’d like the initial list to be unfiltered as it is blank at thge moment when no querystring value is used. Is this possible within a shortcode or do I have to create a custom PHP page to do this with queries?
My shortcode is:
[pods name=”primary-workshop” template=”Primary Workshops” where=”workshop_category.meta_value?=?‘{@get.STEMCat}'”]
Thanks in advance.
The page I need help with: [log in to see the link]
- The topic ‘Shortcode with Where clause default value’ is closed to new replies.