WordPress.org

Ready to get started?Download WordPress

Forums

Blog Posts Order
Great Plugin, One Recommendation, Sort Ascending (1 post)

  1. zipzit
    Member
    Posted 4 months ago #

    This is a great app, albeit very simple. Does EXACTLY what I need it to do. Because of the complexities of my site and the number of admins I have to deal with a drag and drop tool would not work. Many of my posts have multiple categories. I needed a simple way to order/weight them.

    One recommendation: I really wanted to sort posts Ascending. (Default is Descending) I think that makes things more intuitive. Recommended code change (Add the line: $query->set( 'order', 'ASC' ); in the location indicated below.)

    [code]if ( $query->is_main_query() )
    $query->set( 'orderby', 'menu_order');
    $query->set( 'order', 'ASC' ); // default sort is DESC
    [/code]

    The simplicity of this tool taught me how to write plug-ins! Many thanks to the plugin author, Gagan S Goraya.

    https://wordpress.org/plugins/blog-posts-order/

Reply

You must log in to post.

About this Plugin

About this Topic

Tags