Open ryanwelcher opened 10 months ago
I'd like to add some controls for querying by taxonomy. There is prior art from the meta query controls that can be leveraged here. As MVP, I'll start with being able to use the options laid out here - https://www.whereisit5pmrightnow.com/
I have started some experiments in this branch and am seeing some odd behaviour with the
include_children
andoperator
fields so I may start with basic tax and term selection as MVP.
Exactly what I did. I took your meta-query controls and modified them to provided nice controls for taxonomy-queries.
Within my use-case - querying by context, not by hard-coded term-ids, I didn’t had big troubles with the includes property. Maybe I didn’t mention any errors or maybe it could help you going on with this issues.
Feel invited to https://github.com/carstingaxion/additional-advanced-query-loops/tree/contextual-query-loop and https://github.com/carstingaxion/additional-advanced-query-loops/issues/10
Hey, @carstingaxion and @ryanwelcher. I'd love to use the plugin to query related posts by context in a single template.
How can I test the branch for contextual queries? I activated the plugin but could not find the advanced query loop block.
Hey, @carstingaxion and @ryanwelcher. I'd love to use the plugin to query related posts by context in a single template.
Cool @JosVelasco, that is exactly what I wanted, too and why I forked @ryanwelcher|s great work.
How can I test the branch for contextual queries? I activated the plugin but could not find the advanced query loop block.
I guess because I was a little too rigid in the beginning. Unsure how far I could get with my idea of contextual queries, I renamed everything to “Contextual query loop” to be able to run the original plugin and my fork in parallel. Try this name in the inserter.
Now, that I would like to provide a PR with my additions, I have to revert all the renaming at first. And I haven’t found the time, yet. (And tomorrow morning starts the family holiday)
So feel free to use my fork until some point in the future, where contextual queries will eventually be merged into Advanced query loop.
Unfortunately, the block does not appear. I wonder if it has something to do with a newer WordPress version.
Unfortunately, the block does not appear. I wonder if it has something to do with a newer WordPress version.
Fixed it.
The original plugin gitignores the /build
files, why things were working for me all the time, but for nobody else (who did not do the build manually). I'm sorry.
Now it should work for you, as it works in a Playground
(funfact: In 6 hours my family & me are going to start our holiday, so we can both be lucky to have this fixed before)
Thanks for your feedback @JosVelasco !
Happy holidays, @carstingaxion!
I'd like to add some controls for querying by taxonomy. There is prior art from the meta query controls that can be leveraged here. As MVP, I'll start with being able to use the options laid out here - https://www.whereisit5pmrightnow.com/
I have started some experiments in this branch and am seeing some odd behaviour with the
include_children
andoperator
fields so I may start with basic tax and term selection as MVP.