WordPress.org

Ready to get started?Download WordPress

Forums

Metronet Reorder Posts
[resolved] Not changing post order on the front end (3 posts)

  1. pkp3
    Member
    Posted 1 year ago #

    I am interesting in re-ordering regular posts - I have the admin menu item and can drag and drop the posts into the needed order but that order is not reflected on the front end. What am I missing?
    Thanks for your help

    http://wordpress.org/extend/plugins/metronet-reorder-posts/

  2. Ronald Huereca
    Member
    Plugin Author

    Posted 1 year ago #

    You'll need to sort by menu_order when outputting. There are more details here: http://codex.wordpress.org/Class_Reference/WP_Query#Order_.26_Orderby_Parameters

  3. kensnook
    Member
    Posted 1 year ago #

    I also installed this and I need to reorder single posts on a static page.
    I can drag-n-drop the list in the correct order but it does not show the results in the page. Ronald says he resolved the issue by posting a link with any instructions what so ever? The Plugin installs "class-reorder.php" which sets the "'orderby' => 'menu_order'" already. The link Ronald posted explains to do this but it is already done and the plugin still doesn't reorder anything. Please post EXACT instructions on how to resolve the issue for non-programmers please.

    This is the snip of code from the plugin...if it needs to be set in another .php file in the build please advise.

    //Output non hierarchical posts
    $post_query = new WP_Query(
    array(
    'post_type' => $this->post_type,
    'posts_per_page' => -1,
    'orderby' => 'menu_order',
    'order' => $this->order,
    'post_status' => $this->post_status,
    )

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic

Tags

No tags yet.