Widget and Short Code filtering .
-
The more I get into Query Wrangler, the more I love it. But I’m hoping someone will be able to help me out. Having problems with getting the filtering to work, and can’t find any relevant documentation. Lots of links to anything that looks like help pages, no longer work.
I have queries with filters set up on fields that are labelled as “taxonomy:project tags”. The fields come from Jetpack’s Portfolio plugin, and I am filtering initially for the Word ‘Electrics’. This is query ID 7 and it works fine as a shortcode [query id=7] on a page, and as a widget by choosing the query from a drop down.
The problem is, I don’t want to always use the tag ‘Electrics’ and I don’t want to have a separate query for every single tag. I’m trying to create a widget that displays a contextual menu. Eventually I should be able to use context fields, but I’m keeping it simple until I can get it working with something basic.
I think the problem boils down to this:
For a shortcode display I think I need something like
[query id=7 args=”{{post:taxonomy_jetpack-portfolio-tag}}=Electrics”]
But I can’t get anything like that to work – I’ve tried all sorts of variations on the phrase in quotes, based on how wordpress labels it on various screens. None work with that syntax, unless I have missed one.I assume that I would need something similar if I want it displayed as a widget – something to go in the contextual arguments box.
But what is the syntax please ?
And what filters would I need in the query itself ? If I don’t put anything in, I get no output. If I put something in, the query controls the display and the shortcode arguments have no effect. I haven’t found any contextual arguments that work in the widget – but I’m shooting in the dark. Anything with quotes gets stripped out anyway.
Any ideas please ?
- The topic ‘Widget and Short Code filtering .’ is closed to new replies.