Forums

[closed] Post Management, sort posts in backend (9 posts)

  1. skarck
    Member
    Posted 2 years ago #

    Hi,

    i'm looking for a way to manage posts in WP backend, like sorting posts by metadata or filter the view by category...

    i can't believe there's no way to do it, maybe you know a plugin (i didn't find one)

    -skarck

  2. MichaelH
    Volunteer
    Posted 2 years ago #

    You can Filter the view by category.

    Administration > Posts > Edit

  3. skarck
    Member
    Posted 2 years ago #

    Ah, i see filtering is possible.
    but what about sorting?

    i use an event plugin that gives posts a timestamp (event date) as a custom field. now i'd like to sort all posts in backend by this metadata.

    any ideas?

    thanks,
    -skarck

  4. MichaelH
    Volunteer
    Posted 2 years ago #

    Not sure you can get there without modifying core files. The function wp_edit_posts_query in wp-admin/includes/post.php handles that and it looks like there is no filter on the orderby.

  5. skarck
    Member
    Posted 2 years ago #

    Hi Michael, could u give me a hint how to access the posts metadata within this function?
    i just don't get the right value for
    $orderby ...
    i found
    get_post_meta( $post->ID, 'metakey', true );
    but it doesn't work :(

  6. skarck
    Member
    Posted 2 years ago #

    Hi again,

    would be great to get some help
    i'm trying
    wp("post_type=post&$post_status_q&posts_per_page=$posts_per_page&order=$order&orderby=meta_value&meta_key=MyValue");
    like in function reference in post.php but it doesn't work.
    seems not to access metadata.
    orderby=post_title works.

    thanks in advance,

    skarck

  7. shmrck1
    Member
    Posted 2 years ago #

    I am also wanting to have posts appear in order by date, and they appear in alphabetical order by month :(
    Anyone know how I can fix that?

    It's the Kurt's Corner posts on this page, I need to reorder by date, not by the month spelling. Any help is much appreciated! Thanks :)

    http://americanpoweryoga.com/kurtsCorner/

  8. skarck
    Member
    Posted 2 years ago #

    i'm sorry shmrck1, but this tread is about ordering posts IN BACKEND (edit post list) not in frontend...

  9. MichaelH
    Volunteer
    Posted 2 years ago #

Topic Closed

This topic has been closed to new replies.

About this Topic