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

1
  • Post your code that you have tried.
    – m4n0
    May 13, 2015 at 10:28

1 Answer 1

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 and acknowledge that you have read and understand our privacy policy and code of conduct.

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