I’ve run into a little problem on a client project. I’m cleaning up a plugin that was custom-built by another freelancer and already huge improvements have been made. The code was incredibly sloppy and is now much cleaner.
The final problem I have is with a couple of custom taxonomies.
Basically a post is created in the admin and assigned a category and a location. Querying the posts by either one is perfectly fine. The structure goes something like www.url.com/location/location_name or www.url.com/category/category_name. The problem is it needs to be filtered by both location and category.
Is there a simple way to do this that I’m missing?
- Author has had an Item Featured
- Author was Featured
- Bought between 100 and 499 items
- Exclusive Author
- Has been a member for 4-5 years
- Referred between 50 and 99 users
- Repeatedly Helped protect Envato Marketplaces against copyright violations
- Sold between 250 000 and 1 000 000 dollars
this is an interesting problem. I guess that most probably you can solve it by using this hook:
var_dump() the arguments of the function to check more details. Then add an condition which should look like this “if url is like yourproject.com/FLAG/category/place THEN influence code”
anyway let me know about your solution, Im really interested in this
I’m still looking into a few things but this article looks like a good start.