Plugin Directory

postMash - custom post order

Customise the order your posts are display in using this simple drag-and-drop Ajax interface.

Download Version 1.2.0

You no longer need to modify your template code in any way!!

Here is the old install info, not needed now, but maybe useful if you want to remove the old code from you template, but can't remember what you changed..

Open wp-content/themes/your-theme-name/index.php and find the beginning of ‘the loop’. Which will start: if(have_posts()). Then add the following code directly before this:

<?php  
    $wp_query->set('orderby', 'menu_order');  
    $wp_query->set('order', 'ASC');  
    $wp_query->get_posts();  
?>

This just tells WP to get the posts ordered according to their ‘menu_order’ position. Therefore you can get the posts ordered anytime you use a function such as get_posts simply by giving it the required arguments:

<?php get_posts('orderby=menu_order&order=ASC'); ?>

Checkout the get_posts() function in the wordpress codex for more info. Note that it says menu_order is only useful for pages, posts have a menu_order position too, it just isn’t used. postMash provides you with an iterface so that you can use it.

Requires: 2.1 or higher
Compatible up to: 2.8.4
Last Updated: 2009-8-12 Downloads: 32,909

Average Rating

5 stars
4 stars
3 stars
2 stars
1 star
(26 ratings)

Compatibility

+
=
Not enough data

1 person says it works.
0 people say it's broken.

Log in to vote.

50,2,1
67,3,2
83,6,5
57,7,4
50,4,2
56,9,5
100,1,1
100,2,2
50,2,1
0,1,0
0,1,0
75,4,3
100,1,1