WordPress.org

Support

Support » Plugins and Hacks » [Resolved] Not changing post order on the front end

[Resolved] Not changing post order on the front end

Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Author Ronald Huereca
    Participant

    @ronalfy

    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

    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,
    )

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘[Resolved] Not changing post order on the front end’ is closed to new replies.