-
Notifications
You must be signed in to change notification settings - Fork 11
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Post meta query placeholders for dynamic values #54
Comments
That would be a great addition to AQL, enabling e.g. ACF relationship field queries. |
Meta queries, where not my list, but 3/4 of this non-comprehensive list are already implemented in my fork (of this great plugin). Please have a look at https://github.com/carstingaxion/additional-advanced-query-loops/tree/contextual-query-loop and some images at carstingaxion#10 For sure we could share some (more) code to make things work for your & and my use-case. |
4/4 Done ! Querying posts by the currently logged-in user, was nothing I had planned before, but with my existing code it was just a little copy-paste & and minor changes. Bildschirmaufzeichnung.vom.26.05.2024.12.37.17.mp4 |
@carstingaxion, I would love to see a PR for this to add it to the plugin. |
Cool thank you @ryanwelcher and yes, I would appreciate that. But which part are you referring to? The whole contextual-query-block or just the 4 aspects mentioned here? I thought about forking, contributing and re-publishing just recently and am wondering, if we - you and me - should publish the contextual-query-block as separate plugin to the repo. The thought came from the realisation, that I disabled more and more of your controls within my plugin, because they didn't made any sense, when querying by context. What do you think (more in general)? |
In addition, when we both put all our controls within slots, we could and should be able to merge all in, because this would allow me to just unregister your controls from the block, instead of commenting them out in code. |
I'd be interested in any feature you'd be wiling to create a PR for. Keep in mind that smaller changesets are easier to review and test so perhaps a PR for each feature is best.
While you're welcome to do so, I'm going to stick with adding features to AQL directly. I'd rather users who have the plugin installed can keep using it and benefit from new features as they become available. |
+1 for ability to use a placeholder for Current Post ID in meta queries. My scenario is to display a list of the Tracks on a Recording (CD, DVD, vinyl )
To make it work I hard coded the post ID 1624. For the time being I'll implement a filter hook for the |
There has been a few requests for the ability to use a dynamic value in post meta queries. We'll need to add the placeholder values in into the Meta Value field and define an easy way for users to use them. Perhaps an autocomplete style field similar to how we're handling the meta keys would work.
Non-comprehensive list:
Related: #38, Support forum topic 1
The text was updated successfully, but these errors were encountered: