• Hi,
    I have some posts widgets that propose me to order posts with date, title, random and… menu order. I’ve tried this last one, but really don’t understand how it works ? Any idea here ?
    Thanks !

    Mik

    • This topic was modified 4 years, 6 months ago by Jan Dembowski. Reason: Moved to Fixing WordPress, this is not an Everything else WordPress topic
Viewing 1 replies (of 1 total)
  • Hi Mik,

    Menu order is most often used to sort the display order for pages. The order property for pages can be set in the Page Attributes metabox in the Page Editor. Posts, on the other hand, do not have an order field available within the Post Attributes metabox. All posts are assigned a default menu order value of 0.

    If you are working with a child theme, the order field can be added to Post editor by adding support for page attributes. For example, the following code, when added to your child theme functions.php, will register the page attribute feature for posts:

    add_action( 'admin_init', 'your_custom_post_order_fn' );
    
    function your_custom_post_order_fn() 
    {
        add_post_type_support( 'post', 'page-attributes' );
    }

    Reference: https://make.www.ads-software.com/support/user-manual/content/pages/page-attributes/#order

    Good luck!

Viewing 1 replies (of 1 total)
  • The topic ‘What is “menu order” for posts ?’ is closed to new replies.