Dynamic grid based on URL parameters + more complex logic

0
Dynamic grid based on URL parameters + more complex logic 1
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
Dynamic grid based on URL parameters + more complex logic 2
Submit Answer
Please login to submit answer.
1 Answers
Sort By:
Best Answer
0
Dynamic grid based on URL parameters + more complex logic 3
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://pickplugins.com/documentation/post-grid/filter-hooks/post_grid_query_args/

Let me know for more help.

Regards

Sign in to Reply
Replying as Submit