Custom Post Types – Change order of menu items
I am adding Custom Post Types to my wordpress dashboard. When a new CPT is added it is added to the bottom of the menu. I would prefer for the CPT menu items to be in alphabetical order.
For example, in the image below I added a new CPT called ‘Animations / Films / Aerials’ and it is inserted at the bottom of the menu order:
What solutions have I looked for before posting? I have looked for answers on stack but I haven’t found a clear solution. I also read through the documentation here: https://codex.wordpress.org/Function_Reference/register_post_type#Parameters. It seems like the
menu-position property doesn’t allow you to change the order of CPT’s relative to one another. What needs to be done if I want these CPT’s to be in alphabetical order in the admin menu?