• Is there a way to add filters or post meta queries when inheriting query from template? Ability to do more other than “Order by”? I read something about SlotFills, but I cant find clear instructions on how to enable this.

    Thank you.

Viewing 13 replies - 1 through 13 (of 13 total)
  • Thread Starter Carl

    (@carlbtmn)

    Any update on this?

    Plugin Author Ryan Welcher

    (@welcher)

    Hi there and thanks for using AQL.

    You can follow the guide here in order to introduce your own controls and/or access the available filters. This will require you to write an extension plugin.

    What are you hoping to achieve? Perhaps there is a change that can be made to the plugin to accommodate?

    • This reply was modified 1 year, 5 months ago by Ryan Welcher.
    Thread Starter Carl

    (@carlbtmn)

    I would like to show posts from a specific role, but with inherit query from template enabled. That way I can create a section for those posts and also show the rest on another query. This is specifically when users click on a category or tag for those archive pages, etc.

    Thread Starter Carl

    (@carlbtmn)

    Where exactly do I put the AQLcontrols code?

    Thread Starter Carl

    (@carlbtmn)

    Hello @welcher

    Could you explain a bit more how to write the extension plugin? I see the code on Github, but the instructions are not too friendly.

    Thank you.

    Thread Starter Carl

    (@carlbtmn)

    The support from you @welcher is non-existent. Are you even maintaining this plugin?

    Thread Starter Carl

    (@carlbtmn)

    I found a ton of videos of you… hopefully I can find an answer… I feel like I want to do something really simple.

    Plugin Author Ryan Welcher

    (@welcher)

    Hi there. Yes, I am still maintaining this plugin in my free time when I am not working full time or spending time with my family.

    The existing example code shows all of the code you need to be able to extend AQL in a separate plugin. The SlotFill system is documented in a number of places and a quick Google search provides a lot of information as well. That being said, I have been working on better instructions for how to extend the plugin in a branch here but I have not had the chance to test them and so have not merged them.

    Thread Starter Carl

    (@carlbtmn)

    Thank you for your reply.

    The tutorial is looking great so far, but I am indeed a noob when it comes to WP and JavaScript. I was hoping if I could do a slight modification to the existing AQL plugin and avoid having to create a separate plugin. Is there a way we could add a toggle that would enable all existing controls, but with inherit query from template enabled. I just need to be able to filter by category or better yet by role.

    Is this possible?

    Plugin Author Ryan Welcher

    (@welcher)

    You would need to add your controls to the plugin, run the build process, and then upload the contents to your server. The main issue you’ll run into is when there is an update to the plugin, it will most likely override your changes.

    I have put together an example plugin that is now linked in the readme that might help you to see how to extend AQL using an external plugin.

    • This reply was modified 1 year, 4 months ago by Ryan Welcher.
    • This reply was modified 1 year, 4 months ago by Ryan Welcher.
    Thread Starter Carl

    (@carlbtmn)

    So you don’t think this could be an enhancement worth trying? You are giving the option to the user to use more controls if needed when inheriting from the template.

    Plugin Author Ryan Welcher

    (@welcher)

    Showing posts from a specific role sounds like a good addition. All I was saying in my post was that unless it’s added to the plugin (and you’re welcome to open a pull request to add it ), it would be better to add it via an extension plugin.

    Thread Starter Carl

    (@carlbtmn)

    Understood. I will open a pull request shortly.

    Thank you Ryan.

Viewing 13 replies - 1 through 13 (of 13 total)
  • The topic ‘Inherit query from template’ is closed to new replies.