Alex Barber | Digital Artist

time to push the pixels

WordPress – postMash filtered with post ordering

Using the postMash (Filter) plugin – it’s an edited version of postMash that lets you filter out specific groups of posts to order.

Add the following to functions.php to handle the custom ordering – it’s pulled from the latest version of postMash:

function postMash_orderPosts($orderBy) {
global $wpdb;
$orderBy = “{$wpdb->posts}.menu_order ASC”;
return($orderBy);
}

add_filter(‘posts_orderby’, ‘postMash_orderPosts’); //add filter for post ordering

Next Post

Previous Post

© 2024 Alex Barber | Digital Artist