Title: Custom Taxonomy?
Last modified: August 22, 2016

---

# Custom Taxonomy?

 *  [Jason Robinson](https://wordpress.org/support/users/jsrobinson/)
 * (@jsrobinson)
 * [11 years, 8 months ago](https://wordpress.org/support/topic/custom-taxonomy-34/)
 * Hi Paul
    Just saw the new beta, excited to check it out!
 * In the mean time, I am struggling to figure out exactly how to integrate this
   plug-in with media-tags callback’s:
 * [http://www.nsp-code.com/advanced-post-types-order-api/sample-usage/](http://www.nsp-code.com/advanced-post-types-order-api/sample-usage/)
 * I purchased the pro version as it offers manual sort orders for images, and it
   can hook into media-tags (and other custom taxonomies). The problem is that while
   the admin area sorts just fine, I can’t get the front end to work. Where would
   I go to modify the wp_query code that media-tags is using to fulfill the callbacks
   that I’ve created? As you can see, it isn’t “sort by menu_order”, there are additional
   parameters that I need to put in…
 * [https://wordpress.org/plugins/media-tags/](https://wordpress.org/plugins/media-tags/)

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

 *  Thread Starter [Jason Robinson](https://wordpress.org/support/users/jsrobinson/)
 * (@jsrobinson)
 * [11 years, 8 months ago](https://wordpress.org/support/topic/custom-taxonomy-34/#post-5783236)
 *     ```
       $args = array(
       2	            'post_type' => 'feature',
       3	            'orderby'       => 'menu_order',
       4	            'order'         => 'ASC',
       5	            'tax_query'     => array(
       6	                            array(
       7	                                'taxonomy'  => 'movies',
       8	                                'field'         => 'id',
       9	                                'terms'     => 10
       10	                                )
       11	                            )
       12	            );
       13	$my_query = new WP_Query($args);
       14	while ($my_query->have_posts())
       15	    {
       16	        $my_query->the_post();
       17	        //(..your code..)
       18	    }
       - See more at: http://www.nsp-code.com/advanced-post-types-order-api/sample-usage/#sthash.d9fj9c8I.dpuf
       ```
   
 *  Plugin Author [Paul Menard](https://wordpress.org/support/users/pmenard/)
 * (@pmenard)
 * [11 years, 8 months ago](https://wordpress.org/support/topic/custom-taxonomy-34/#post-5783416)
 * [@jsrobinson](https://wordpress.org/support/users/jsrobinson/),
 * Thanks for posting. I would satay away from the beta I posted in this forum. 
   There will be a new beta soon.
 * I’m not really sure how you are trying to use the Media-Tags plugin. Realize 
   that Media-Tags simply registers a custom taxonomy (media-tags) and associates
   it with the ‘attachment’ post_type. That being said you don’t need to use the
   built-in query from Media-Tags. You can write your own WP_Query to access the
   taxonomy items. Then do whatever sorting, filtering you need
 * I don’t think I actually answered your original question. Sorry. Let me know 
   if I can help.

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

 The topic ‘Custom Taxonomy?’ is closed to new replies.

 * ![](https://s.w.org/plugins/geopattern-icon/media-tags.svg)
 * [Media Tags](https://wordpress.org/plugins/media-tags/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/media-tags/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/media-tags/)
 * [Active Topics](https://wordpress.org/support/plugin/media-tags/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/media-tags/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/media-tags/reviews/)

## Tags

 * [custom order](https://wordpress.org/support/topic-tag/custom-order/)
 * [custom sort](https://wordpress.org/support/topic-tag/custom-sort/)

 * 2 replies
 * 2 participants
 * Last reply from: [Paul Menard](https://wordpress.org/support/users/pmenard/)
 * Last activity: [11 years, 8 months ago](https://wordpress.org/support/topic/custom-taxonomy-34/#post-5783416)
 * Status: not resolved