So after some more digging was able to figure it out. Using the Advanced Custom Fields plugin, I created a text field that appears on attachments with specific tag applied to them. Now you can assign a value and I updated my WP_Query to reflect:
<?php
$args = new WP_Query(array(
'post_type' => 'attachment',
'posts_per_page' => -1,
'oderby' => 'meta_value_num',
'order' => 'ASC',
'post_status' => 'any',
'post_parent' => null,
'meta_query' => array(
array(
'key' => 'logo_sort_order'
)
),
'tax_query' => array(
array(
'taxonomy' => 'post_tag',
'field' => 'slug',
'terms' => 'logo'
)
)
));
while ( $args->have_posts() ) : $args->the_post();
?>
Hope this helps someone else.
Related Posts:
- Count the number of images uploded on the website
- How to paginate attachments in a secondary query as gallery?
- How do I exclude all images from a wp_query?
- get images attached to post
- query attachments of parent page if attachments of current page are smaller than …
- WP_Query: attachment image in “full” size?
- wp_get_attachment_image not to get the post_thumbnaill
- How To Query All Attachment Images Found In Post Galleries
- Some images not being returned with wp_get_attachment_image
- Broken? WP_Query and “attachment” as a post type
- Is it possible to query all posts that don’t have an attachment?
- How to paginate wordpress [gallery] shortcode?
- How to get Page/Post Gallery attachment images in order they are set in backend using WP_Query()?
- Getting attachments by meta value
- Get attachment by slug
- Get All IDs Of A Post Type Using WP_Query
- Get attached media only
- How to display images in related posts?
- post thumb nail
- Show all parents and children in custom post type in right order
- WP Query search for attachments and their exact title
- How can I pick a single post from the latest 3?
- Show selected images on top in Media Manager
- How can I query posts with newly uploaded images?
- How do I search inside specific taxonomies in WordPress
- Sorting By Custom Posts With Attachments
- Attachment changing page’s permalink – $post not resetting?
- How to fetch only media that was already attached to a post/page?
- How to do meta_query for attachments?
- Get attachment by meta_key value
- How to show optimized list of posts with all their attachment images
- Where to put meta Keys
- WP_Query Attachment adds additional attachment count and need to link attachment to post url
- Better wordpress attachment query than this
- How do you determine if a result in a search query is a post or a page?
- Why having more than 10 clauses in WP_Query results in some outputs being dropped?
- wp_query get attachments in larger size
- Creating attachments archive in tags and categories
- How to add WordPress featured image via SQL
- Display all attached image of every post of custom post type and link to original post
- Ignore image urls in wp_query search
- Custom wp_query differs on index page and category page
- Insert images into wordpress post with a query
- Find only those galleries with images
- Show multiple tax_query from 2 or more post_type in a single code
- How can I build a query that returns all attachments of a page and it’s children pages?
- get all images from the wordpress media library with link to the post they are associated with
- paginate_links appearing on page but it doesn’t actually paginate – pagination on a static page with a dynamic `post_type` argument on a static page
- WordPress private post won’t display to other admins
- How to restrict add media library only to images of the same post family?
- how to get custom attachment url?
- post_type not working when tag__in is present?
- Change database image location for transportability
- WP query retrieve the src of attached image
- Trying to use “Medium” featured image for custom post type on home page
- Query All Attachments and Order by Parent Publish Date
- Issue attempting a wp_query_posts with tags
- Display images with same specific value?
- WP_Query for attachments without duplicating post_parent and displaying tagged image
- Using WP_Query to get attachment returns empty set
- Pull Instagram images into an existing loop?
- Loop issues when creating custom query for media uploader
- Custom query for certain post type OR another post type with a certain category
- Give attachments an archive page, and exclude unattached ones
- on attachment.php, how to display previous and next attachment links that follow the same order as a custom WP Query
- Ajax and WP_Query/tax_query parameter
- Set order of returned items in the WP_Query() class/function
- add_filter(‘query_vars’) not working in custom template
- Avoid repeated post on page 2 when excluding one on page 1
- Limiting number of related posts
- wp get attachment image always gives me thumbnail
- Get title of post image is attached to
- How to SQL query posts IDs by categories AND authors?
- wp query remove posts from query then update max pages and posts found
- WP_Query Orderby meta_key and hide some meta_key
- create custom shortcode wp and put php code in
- WordPress Query custom ordering by temporary variable
- How to get only present and past posts with post_date
- How to create better WP_Query to look for date time which is anywhere between two meta values?
- Load WP Query with Ajax
- Fetch only categorized posts
- Wrote a WP Cron Plugin and it triggers a fatal error upon activation
- Getting Year & Date inside wpdb [duplicate]
- Get posts by meta value except one post [closed]
- Quering array of post types & pagination. Articles are repeating sometimes on different pages
- I want to capture the last day’s (today) posts in a category in the numbered order in acf
- How do I have multiple metaqueries inside one wordpress query
- Query All Posts: Either Display Most Recent or One with Particular ACF Value Chosen
- Why am I getting no results of a query placed after another query?
- Can I use WP_Query to find a post with a particular menu_order?
- Display only posts with thumbnails
- How to efficiently find “duplicate” posts, where the titles are different, using metadata to match posts?
- SQL command to delete bulk WP post specific
- Removing filename searches when searching attachments
- Not displaying the wp_query object for the following code in the frontend
- How to use meta_query to retrieve posts from multiple custom post type
- Rewrite URL custom search query
- WordPress WP_Query custom order_by post_type functionality
- $wpdb->get_results() into foreach() returns always the word “Array” on top of the list . How to get rid of?
- Using meta_query with non-meta_query criteria in a WP_Query using OR instead of AND