• Resolved lakenjr

    (@lakenjr)


    Is there any possibility of an enhancement to allow the option of showing posts in alphabetical order?

    i.e. sorted on the post title

Viewing 1 replies (of 1 total)
  • Plugin Author Martin Stehle

    (@hinjiriyo)

    Put that code into the theme’s function.php or make a new plugin containing:

    function rpwwt_order_alphabetically ( $query_args ) {
        $query_args[ 'orderby' ] = 'title'; // order by title
        $query_args[ 'order' ] = 'ASC'; // sort order: A-Z
        return $query_args;
    }
    add_filter( 'rpwwt_widget_posts_args', 'rpwwt_order_alphabetically' );

    If you do not want to code just take a look at the Pro version of Ultimate Post List.

Viewing 1 replies (of 1 total)
  • The topic ‘Show posts in alphabetical order’ is closed to new replies.