Skip to content

studio-goliath/goliath-post-terms-order

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

11 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Goliath post terms order

This is a WordPress plugin that sorts taxonomy terms per post.

This plugin only adds an admin interface to sort terms. Otherwise it uses core functions because they already exist !

If you want to learn more about term ordering per post

how to use it

Create a custom taxonomy ( or filter a existing taxonomy ) and add the following argument :

'sort' => true

When you want to get all you terms in the right order use this core function :

$terms = wp_get_object_terms( $post_id, $taxonomy, array( 'orderby' => 'term_order' ) );

About

WordPress plugin that sort taxonomy terms per post

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published