0
Anonymous
I have 2 taxonomies:
- cats (contains three types: cat1, cat2 and cat3)
- dogs (contains two types: cat1 and cat2)
- 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?
- 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 Dynamic grid based on URL parameters + more complex logic 2](https://pickplugins.com/wp-content/litespeed/avatar/978ff02cf6cfb3e60ade623dd6942a3a.jpg?ver=1738285744)
Submit Answer
1 Answers
Best Answer
0
![Dynamic grid based on URL parameters + more complex logic 3 Dynamic grid based on URL parameters + more complex logic 3](https://pickplugins.com/wp-content/litespeed/avatar/60b037d2fe05ceb39acb7f02dbd29bd8.jpg?ver=1738285093)
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