Setting the argument public
to true
will do. Check out the file wp-admin/includes/media.php
, function get_compat_media_markup()
for reference:
if ( $args['in_modal'] ) {
foreach ( get_attachment_taxonomies( $post ) as $taxonomy ) {
$t = (array) get_taxonomy( $taxonomy );
if ( ! $t['public'] || ! $t['show_ui'] ) {
continue;
}
Related Posts:
- A better Media LIbrary Experience
- How do I modify the “Insert Media” lightbox in the admin to only show media items from a category?
- How to filter a post in the Tag Cloud widget, using tags of a media library image attached to the post?
- What’s the best way to add taxonomy’s image in 2017?
- Custom taxonomy filter for media
- Items from media library won’t get added to a custom taxonomy
- Query all images with certain tag in media library using visual portfolio plugin
- Producing a list of media library items categorized under a certain taxonomy item
- How do I exclude a custom taxonomy from the post loop
- How to get WooCommerce Product Category Link by ID?
- Add post classes for custom taxonomies to custom post type?
- WordPress Search – display taxonomy terms in results
- How to display a listing template of a certain taxonomy?
- How do I filter posts by taxomony using AJAX
- Rewrite rule for custom taxonomy
- Showing posts by collection of specific terms and texonomy
- How do I rewrite a url to use %taxonomy% instead of %category% when multiple taxonomies are present?
- Custom taxonomy – custom sortable column
- term_link() filter or rewrite and howto?
- What template is used for a custom taxonomy page?
- WP redirects pretty permalink to query string
- Custom WP_Query breaks default behaviour of viewing right post associated with tax-term!
- How to modify default taxonomy field to a single text field?
- How to set hierarchical terms to a post using wp_set_object_terms
- How to link categories to custom taxonomy terms?
- Check if post has a specific post type
- List taxonomy / category count showing list published posts only
- Custom taxonomy term in WooCommerce product permalink
- Save Filter for Taxonomies
- Modify main loop in taxonomy archive page
- Displaying a custom taxonomy term’s name & description
- Get terms from posts submitted within a certain time
- Storing an array using update_metadata [closed]
- Display Terms for all posts in Current Archive or Query
- How do I sort posts by custom taxonomy?
- Display post taxonomies tree
- Some Custom Taxonomy modified dates return false
- Is echo get_the_term_list and get_field in a template file considered safe?
- Advanced Query Logic With Multiple Taxonomies
- Remove alphabetical order from wordpress categories
- Is it possible to get all term items from a custom taxonomy regardless of post attachment status?
- Filter WooCommerce admin products list by a custom taxonomy
- Get custom category image from menu
- Pull in taxonomy links using get_the_terms?
- Adding content to a taxonomy metabox
- Getting values of a custom taxonomy dropdown
- What is faster: custom taxonomy or serialized post-meta for db retrieval? (over 60,000 posts)
- I am trying to display information from a custom table from my wordpress users pages
- Get taxonomy based on another taxonomy slug
- How does WordPress Parent-Child Taxonomy actually Works?
- Custom taxonomy archive shows 404 error
- Different single page templates for taxonomies
- Can I use OR relation for one item when calling tax_query from WP_Query and use AND for the rest?
- Can’t set custom taxonomy terms via custom form
- I don’t need ‘view’ page for my custom taxonomy
- If Custom Taxonomy
- What does ‘category__in’ mean in queries?
- Use the same taxonomy twice on the same post type?
- When filtering query on custom taxonomy; main menu dissapears
- Get only immediate children (and not grandchildren) of a hierarchical custom taxonomy term
- Why doesnt this query work? (Custom Taxonomy)
- How to group all terms children’s in custom taxonomy?
- Display Posts by Custom Taxonomy Chosen Terms
- How do I get term data associated with the current post, where the result is not wrapped in HTML?
- Custom taxonomies mixed into categories and tags in Post edit page
- How to get product order by two custom taxonomy in wordpress
- How can i add custom field inside custom post taxonomy?
- Custom Taxonomy Not Saving in Front End Post
- How to list Custom Taxonomy
- Taxonomize taxonomy terms?
- Taxonomy archive template not working
- Showing relevant categories on custom taxonomy template
- Dropdown list of taxonomies won’t display selected
- Creating a drop-down and filter button for two custom taxonomies assigned to a custom post type
- custom taxonomies on pages
- Set two terms for a post when they differ only by an accent
- Unknown column ‘wp_posts.ID’ in ‘field list
- Conditional if is single and part of the custom taxonomy
- Can I get thumbnail of taxonomy?
- Adding Advanced Custom Fields to posts
- setting a custom post type taxonomy term by code
- Retrieve & Display User Meta Values from Checkboxes
- Custom taxonomy if statement
- How do I check to see if a specific child term has shared posts with another set of child terms within the same taxonomy?
- How to add a custom user taxonomy column to “All Users” in users.php?
- WordPress Multiple Taxonomy Query
- Group & Sort Taxonomy terms by letter – Is there a better way?
- Add image to taxonomy and output to homepage
- Trying to Display Number of Posts in Term
- Multiple taxonomies, what should the permalink look like?
- Child Pages and Custom Taxonomies
- Determine if Term has Grandparent/Great-Grandparent
- Custom taxonomy auto suggest not working in wordpress admin
- add_query_arg to look up page title
- Saving Taxonomies to Post Revisions
- Loop custom post type by taxonomy (Category)
- Error when adding custom taxonomy to wp nav menu
- Create heirachy of post terms from array & assign post to terms
- Custom Search only for my Custom Taxonomy Page – data
- How much worse is querying custom fields compared to custom taxonomies, quantitatively