Dynamic grid based on URL parameters + more complex logic

Support reply may delay for 3 weeks due to corona virus outbreak, please send us email to support@pickplugins.com
0
Anonymous
Dec 17, 2018 11:03 AM 1 Answers General
Member Since Jan 1970
Unsolved Solved Mark as Solved Mark as Unsolved
Subscribed Subscribe Not subscribe
Flag(0)

I have 2 taxonomies:

  • cats (contains three types: cat1, cat2 and cat3)
  • dogsĀ (contains two types: cat1 and cat2)
  1. I would like to get the two parameters from the URL (for example, $cat="cat1" and $dog="dog2"), and then display a grid with all posts that have the taxonomy cat="cat1" and the taxonomy dog="dog2". Is this possible?
  2. Can more complex logics be built? Example: $cat=(("cat1" OR $cat="cat2") and $dog="dog2")
2 Subscribers
Submit Answer
Please login to submit answer.
1 Answers
Sort By:
Best Answer
0
PickPlugins
Dec 17, 2018
Flag(0)

Welcome to our forum.

I hope you can do it, there is a filter hook for query arguments, so you can pass your own query argument for post grid, you can grab these variables via $_GET and use on the filter hook

https://www.pickplugins.com/documentation/post-grid/filter-hooks/filters-post_grid_filter_query_args/

Let me know for more help.

Regards

Sign in to Reply
Replying as Submit

Please use https://imgur.com/upload to upload your screenshot and share url here.
You can't upload any files or attachment to our server directly for security reason, you can use 3rd party website and share file url here. here is the top file sharing website you can use.

Please login to see your tickets