Home › Forums › Backend Issues (wp-admin) › Add submenu to a custom post type menu › Reply To: Add submenu to a custom post type menu
fine 🙂 then you can should use my code.
hmm, dont know if it is possible to add it with plugin, because i dont know if this is true, when used with plugin:
This function must be used before the action admin_menu (priority 99) as this is when the options pages are added to WordPress.
just for testing, could you try to add it with functions.php and look if it works then
maybe it would also work if you wrap that function inside your plugin with that code: to init it before admin_menu is created
add_action('init', 'add_my_options_pages');
function add_my_options_pages() {
// put code from above in this function
}
Welcome to the Advanced Custom Fields community forum.
Browse through ideas, snippets of code, questions and answers between fellow ACF users
Helping others is a great way to earn karma, gain badges and help ACF development!
We use cookies to offer you a better browsing experience, analyze site traffic and personalize content. Read about how we use cookies and how you can control them in our Cookie Policy. If you continue to use this site, you consent to our use of cookies.