Changing the menu position of the custom post type


show more Changing the menu position of the custom post type provides you with in-depth training on Design. Taught by Morten Rand-Hendriksen as part of the Create an Online Portfolio with WordPress show less
please wait ...

Changing the menu position of the custom post type

So far we've created three new post types, we've changed the labels of those post types so they display the right names for each of the post types and we've added a lot of functionality to each of the post types, but there are still a few things that we need to do to make this a complete project. First of all when you look at the new post types you notice they appear at the very bottom of this first section of the menu. So you have Posts and they have Media, Links, Pages, Comments, and then you have got the post types. What you want to do is probably move these post types up so they appear underneath Posts rather than underneath Comments.

We can do that with one of the variables that's inside the post type definition. If we go back to posttypes.php and scroll down, you'll see that in the arguments array for each of the register post type functions there is a variable called menu_position. It's right here, and it's always set to null by default. If it's se...

Changing the menu position of the custom post type
Video duration: 3m 19s 3h 13m Advanced

Viewers:

Changing the menu position of the custom post type provides you with in-depth training on Design. Taught by Morten Rand-Hendriksen as part of the Create an Online Portfolio with WordPress

Subjects:
Design Web
Software:
WordPress
Author:
please wait ...