Orderby – Menu Order on Posts
-
Hello
I have created a shortcode that I use in our site. The purpose of the shortcode is to display posts, nothing special, but I want to sort them by menu order.
So I added in the functions.php the bellow code
add_action( 'admin_init', 'MenuOrder_OnPosts' ); function MenuOrder_OnPosts() { add_post_type_support( 'post', 'page-attributes' ); }
But when I’m in the admin inside a post and set a number on the attribute and click save the number resets to zero…
What can I do to solve this problem?
Thanks is advance,
Olga
Viewing 4 replies - 1 through 4 (of 4 total)
Viewing 4 replies - 1 through 4 (of 4 total)
- The topic ‘Orderby – Menu Order on Posts’ is closed to new replies.