How Do I Sort My WP Posts by Title?

by Dreams
3 replies
Hi,

I just created an autoblog and now I have a lot of posts to organize within my admin area. My problem is that WordPress sorts posts by the time it was published. I need to view or sort my posts by my title so that I can organize my tags better.

I just want to sort my posts from within my admin area so I can organize them better and maybe delete some posts. Does anyone know how to view your WP posts by title? I'll probably need a plugin for this one. I have way too many posts that I need to organize.

Thanks!
#posts #sort #title
  • Profile picture of the author mywebwork
    Use the "orderby" parameter when you display your posts, you can either do this by category or in the index.php file so that the main listing is ordered by title:

    Alphabetizing Posts WordPress Codex

    Bill
    {{ DiscussionBoard.errors[1758554].message }}
  • Profile picture of the author Dreams
    Hi Bill,

    Thanks for you reply. I think that will list posts on the front end alphabetically. I would just like to list posts on the back end or admin side alphabetically. It doesn't matter what order it is seen visibly to users. I would like to see it on my end just for organizing sake. I want to check that I don't have duplicate posts etc... Everything that I want to do it is in the admin side.

    Does anyone know how to list their post titles alphabetically on the admin side?

    Thanks!
    {{ DiscussionBoard.errors[1760104].message }}
  • Profile picture of the author lisag
    Originally Posted by Dreams View Post

    Hi,

    I just created an autoblog and now I have a lot of posts to organize within my admin area. My problem is that WordPress sorts posts by the time it was published. I need to view or sort my posts by my title so that I can organize my tags better.

    I just want to sort my posts from within my admin area so I can organize them better and maybe delete some posts. Does anyone know how to view your WP posts by title? I'll probably need a plugin for this one. I have way too many posts that I need to organize.

    Thanks!
    Found this on the WP forum. Try this. Save the code below in a php file named admin_sort.php, or something, and upload it to your plugin directory, activate, and Bob's your uncle (I hope).
    Code:
    <?php
    /*
    Plugin Name: Set Post Order In Admin
    Version: 0.1
    Plugin URI: http://wordpress.org/support/topic/336715/
    Description: In Posts->Edit, display posts in title order.
    Author: MichaelH
    Author URI: http://codex.wordpress.org/User:MichaelH/MyPlugins
    */
    
    function set_post_order_in_admin(  ) {
      if ( is_admin() ) {
        ( 'orderby', 'title' );
        ( 'order', 'ASC' );
      }
    }
    add_filter('pre_get_posts', 'set_post_order_in_admin' );
    ?>
    Signature

    -- Lisa G

    {{ DiscussionBoard.errors[1796617].message }}

Trending Topics