admin管理员组

文章数量:1421898

There is an order field when editing pages, so you can easily rearrange them, this is missing at posts, I`m thinking that there must be a simple scrip that adds this functionality to posts too.

I tried googling it, with no luck, I do not want to use a plugin if it can be done with a simple script.

thank you

There is an order field when editing pages, so you can easily rearrange them, this is missing at posts, I`m thinking that there must be a simple scrip that adds this functionality to posts too.

I tried googling it, with no luck, I do not want to use a plugin if it can be done with a simple script.

thank you

Share Improve this question asked Feb 22, 2020 at 14:52 Botond VajnaBotond Vajna 4714 silver badges11 bronze badges 2
  • can you show me at least one please? – Botond Vajna Commented Feb 22, 2020 at 15:02
  • @MaxYudin different people get different results on Google, what works for you may not work for them, so be nice – Tom J Nowell Commented Feb 22, 2020 at 16:15
Add a comment  | 

1 Answer 1

Reset to default 2

I find it:

add_action( 'admin_init', 'posts_order' );

function posts_order() 
{
    add_post_type_support( 'post', 'page-attributes' );
}

本文标签: Add post order like page order