Last active
February 22, 2024 21:29
-
-
Save nikolov-tmw/8698598 to your computer and use it in GitHub Desktop.
This registers a custom meta box for nav menus and renders it. Obviously $my_items would ideally be not hard-coded and instead it would come somewhere from the DB. The custom items add to the menu and save properly, but will probably not be displayed correctly. You might need to hook to the 'wp_setup_nav_menu_item' filter in order to fix the men…
Its metabox is not showing in customizer.
how to work in customizer
Thank you !
Love the approach. However, the url field is not being passed / saved. Any ideas?
Following up; setting the 'type' to 'custom' will render the url field.
Cheers!
thanks @sododesign @greabs
@greabs change 'type' => 'my-custom-type', for 'type' => 'custom',
I am stuck at how to make the child pages appear in a hierarchy format in my custom post type. Any thoughts?
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Hii.. sorry this not work for me... im using WP 4.5.2
im try to copy and paste your code but still not work... please help me
sorry my english is bad..