• Resolved Jim Goodrich

    (@jim-goodrich)


    Is there a way to reorder the taxonomies in the admin list when editing? The display order on the front end display (and data sheet admins use for data entry) doesn’t match with the back end list for new posts and it’s a workflow bottleneck.

    I’m not a coder, so I’m sure I’m simply overlooking something because I don’t know what I’m looking at in the back end. I’ve searched for like issues and online documentation, but I’ve come up empty. Any help would be greatly appreciated.

    The page I need help with: [log in to see the link]

Viewing 3 replies - 1 through 3 (of 3 total)
  • Thread Starter Jim Goodrich

    (@jim-goodrich)

    I’m not sure if it’s the best or even right way, but I was able to reorder the taxonomies by renaming them in the order I wanted them to appear in the admin view.

    Plugin Author nwjames

    (@nwjames)

    @jim-goodrich,
    I am glad that you have resolved the issue.

    For completeness, the columns are put on the admin screen by setting the field “Display on admin ?” to true. There is no current ability to change the order in the plugin.

    As far as I can see, the order is the order in which taxonomies were added to the global taxonomy table.

    You are able to change it by using the filter “manage_taxonomies_for_{$post_type}_columns”.

    By default, a Post has taxonomies Category and Tag (in that order), You can swap them with this code:

    function reorder_post_post( $taxonomies, $post_type ) {
    	$tax = array(
    		'post_tag' => 'post_tag',
    		'category' => 'category',
    	);
    	return $tax;
    	}
    
    add_action( 'manage_taxonomies_for_post_columns', 	'reorder_post_post', 10, 2 );

    Regards,
    Neil James

    Thank you for getting back to meI apprecaite it! Good information to know.

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Reorder Taxonomies in Admin View’ is closed to new replies.