Viewing 1 replies (of 1 total)
  • Plugin Author David Lingren

    (@dglingren)

    Thanks for your question – I want to make sure I understand it. It looks like you are using the WP_Query class in your PHP code to find items to process, something like thie:

    // The Query
    $the_query = new WP_Query( $args );

    Is that right? If not, could you post an update with more information and/or an example of your code?

    If I understand the question, the answer is straightforward. The MLA Att. Tags and Att. Categories are implemented as WordPress custom taxonomies. You can use them in your WP_Query arguments, referring to them by their slugs, attachment_tag and attachment_category. You can use any of the WP_Query Taxonomy Parameters documented in the Codex. For example:

    $the_query = new WP_Query( array( 'attachment_tag="term-slug" );

    You can also use the more powerful “tax query” syntax to perform more complex queries, and you can add the taxonomy parameter to other WP_Query parameters to build your query.

    I hope that answers your question, and I am marking this topic resolved. Please update it if I did not understand the question or if you have problems with or more questions about using the MLA taxonomies in your queries. Thanks for your interest in the plugin.

Viewing 1 replies (of 1 total)
  • The topic ‘How to include MLA tags in WP_Query $args’ is closed to new replies.