Notice: Function _load_textdomain_just_in_time was called incorrectly. Translation loading for the question-answer domain was triggered too early. This is usually an indicator for some code in the plugin or theme running too early. Translations should be loaded at the init action or later. Please see Debugging in WordPress for more information. (This message was added in version 6.7.0.) in /home/u845912282/domains/pickplugins.com/public_html/wp-includes/functions.php on line 6121
Dynamic grid based on URL parameters + more complex logic

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


Deprecated: str_replace(): Passing null to parameter #3 ($subject) of type array|string is deprecated in /home/u845912282/domains/pickplugins.com/public_html/wp-content/plugins/post-grid/includes/functions-builder.php on line 10