WordPress.org

Ready to get started?Download WordPress

Plugin Directory

Global Posts Ordering

Version: 0.9.5 Adjust the global order of posts from one or various post types via simple drag and drop.

  • Install easily with the WordPress plugin control panel or manually download the plugin and upload the extracted folder to the /wp-content/plugins/ directory

  • Activate the plugin through the 'Plugins' menu in WordPress

  • Open the file functions.php in your theme and put the following in there:

if ( class_exists("global_posts_ordering") ) {
   $global_posts_ordering = new global_posts_ordering(array("my_post_type_1", "my_post_type_2", "my_post_type_3"));
}

You can include the built-in post types 'post' and 'page' as well as custom post types.

  • Save the functions.php file.

  • If you registered only one post type, there should be a new submenu-item under your post type saying "re-order". If you registered multiple post types, you should now have a new top-level menu item saying "Global Order". Each lead you to the drag-and-drop re-ordering interface.

  • Don't forget to set the "orderby" option, if you fetch your posts in your template, for example like this:

$args = array(
   "post_type"=>array("post", "page"),
   "orderby"=>"menu_order",
   "order"=>"ASC",
   "numberposts"=>-1
);
$posts = get_posts($args);

Of course, there are many different ways to fetch posts in your template. It's only important to set the "orderby" to "menu_order" and "order" to "ASC". Other ways to get the posts ordered by menu_order are described on the postMash Installation Page

  • If anything doesn't work, please comment.

Requires: 3.0 or higher
Compatible up to: 3.5.2
Last Updated: 2013-5-18
Downloads: 5,985

Ratings

3 stars
3.7 out of 5 stars

Support

0 of 1 support threads in the last two months have been resolved.

Got something to say? Need help?

Compatibility

+
=
Not enough data

0 people say it works.
0 people say it's broken.

100,1,1 75,4,3 100,1,1 100,3,3
0,1,0
0,1,0