• Hello there!

    I noticed that the AQL supports querying posts and custom post types as well, but I’m not able to query attachments. I’m wondering if you have some ideas on how we could potentially do this? We’re extending the attachment post type to include some custom taxonomies and would like to leverage that directly with this block.

Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Author Ryan Welcher

    (@welcher)

    Hello and thanks for using AQL!

    You can query for attachments by adding them to the additional post types area. Unfortunately, you can’t remove the existing page/post option but you may be able to get around that by selecting a taxonomy term that doesn’t exist on them

    Please excuse my barging in here, but this is a subject I wanted to ask about too, and I’m happy to see that it might be possible to use AQL to query and display attachments.
    I’ve tried adding a taxonomy term from the media folder plugin we’re using to get AQL to only display attachments, not posts, but so far no success.

    AQL does show the taxonomy (“Folder” which is correctly used as “happyfiles_category” in the Query) in the Taxonomy Query Builder, and also shows the correct Term, but the query displays as empty with the operator IN, or random with the operator “EXISTS”.

Viewing 2 replies - 1 through 2 (of 2 total)

You must be logged in to reply to this topic.