0

I am adding a submenu named as "Articles" using add_submenu_page() under a custom menu. I want to display the custom post type="page_article" in this "Articles" submenu.

Whenever I click on Articles submenu , it should redirect me to "edit.php?post_type="page_article".

I have tried with wp_redirect in callback function of add_submenu_page, but I am not getting.

Thanks

  • Post your code that you have tried. – Manoj Kumar May 13 '15 at 10:28
0

Tried with this and got the solution

add_submenu_page( 'page_main', "Articles", "Articles" , 'adminstrator', 'edit.php?post_type=page_article' );

Thanks

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.