WordPress.org

Ready to get started?Download WordPress

Forums

Post Types Order
[resolved] How to order Posts in the Template (2 posts)

  1. mik3e
    Member
    Posted 3 years ago #

    Hi there,

    Maybe it's a noob question, but i can't find any information on this topic. I use the post-types-order plugin (which works fine) to order my posts.

    Now on the frontpage I'd like to show the top three posts defined by the order plugin.

    Does anyone know, which attributes have to be set, so that the query Method of WP_Query orders the item by the defined order?

    Here is my (simplified) query:

    $highlight_featured_arguments = array (
    	'post_type' => 'post',
    	'showposts' => 3,
    	'orderby' => '?????',
    );
    
    $highlight_featured->query($highlight_featured_arguments);

    Thanks in advance & regards,
    Michael

  2. PayBas
    Member
    Posted 3 years ago #

    'orderby' => 'menu_order',

    Works fine for me

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic