php - WP: ordering posts with custom taxonomy terms array -


I can not get the order of my posts (organized by custom tax word) so that my loop is correct.

I created a custom post type 'staff', staff has a custom classification of 'staff-titles'

I call 'Editor in-Chief', 'Managing-Editor' , Words like 'poetry-editor' etc. (similar to the categories to keep the UI clean for the client) have been added. The idea is that customers can go to the 'Staff' post type, create positions which are named after the employee and then check the posts on which they are and then the posts will be displayed in the correct order ( Displaying the posts by running a series of commands below).

Here is the facility of creating my custom tax in functions.php:

  add_custom_taxonomies () {// Add new "location" classification for post register_ taxonomy ('Staff This array of options controls the label displayed in the WordPress Admin UI 'Label' => - 'Heading', 'Staff', array (// Hierarchical Classification (like categories) 'hierarchical' = & gt; true; Array ('name' = & gt; _x ('staff title', 'classification common name'), 'single_name' = & gt; _x ('Title', 'classification singular name'), 'search_itim' = & gt; __ ('search title'), 'all_items' = & gt; __ ('all titles'), 'parent_item' = & gt; __ ('Parent Title'), 'Parent_item_enon' = & gt; __ ('Parent Title:'), 'edit_item' = & gt; __ (Edit title '),' update_item '= & gt; __ (' Update Title '),' add_new_item '= & gt; __ (' Add new headline '),' new_item_name '= & gt; __ (' new title name '),' menu_name '= & gt; __ (' staff title ' ),), // Control the slag used for this classification 'rewrite' = & gt; array ('slug' = & gt; 'Places', // it controls the base slug displayed with each base, which is 'with_front' = & gt; False, // "/ places /" 'hierarchical' do not display the category base before '= & gt; True // like this URL "/ locations / boston / cambridge /"),)); } Add_action ('init', 'add_custom_taxonomies', 0);  

I have WP_Query on the Staff page ...

array ('editor-in-chief', 'management 'Editor', 'alleged-editor', 'poetry-editor', 'non-reaction-editor', 'production-manager')), 'post_per_page' => 1-, 'order' = & Gt; "ASC", "orderbie" => "meta_view_num"); $ My_query = New WP_Query ($ Args);

Tax_coreia 'rule' => The array (...) has the rank (staff post) listed in the order, but this is not the case.

The posts are going to the staff page being displayed in this order, which is the wrong order:

Editor in the main Chong-in Chen
Managing Editor - Shana Martinez Non-Fancy Editor - Kate Enshame
Poetry Editor - C. McCallister Williams
Poetry Editor - Kada Van de Graff
Story Editor - Loretta McCormick
Fiction Editor - Molly Buteel

This is the right order for reference ( The same order as an array of tax query words):

Editor-in-Chief Main Chung
Managing Editor - Shana Martinez
Fiction Editor - Loretta McCormick
Fiction Editor - Molly Buteel
Poetry Editor - C. McCallis Williams
Poetry Editor - Kada van de Graff
Non-Fancy Editor - Kate Enshame
Production Manager - Matthew Morris-Cook

I Above because they are titles of different positions and I thought they could be a part of the problem.

How can anyone decide on this but have any thoughts? If you need more information please let me know that I will be happy to provide. thank you in advanced!


Comments

Popular posts from this blog

ios - How do I use CFArrayRef in Swift? -

eclipse plugin - Run java code error: Workspace is closed -

c - Error on building source code in VC 6 -