Support » Themes and Templates » WordPress admin menu – different sections for each post category

  • Resolved kayjayone

    (@kayjayone)


    I’d like to add category posts to the wordpress admin menu. For example, if one post category is Products and one is Events, there would be in the admin menu “Products” and “Events” menus. Sub-menu items would include the following:

    = Posts- listing out all posts belonging to the specified category (edit.php)
    = Add New- ability to add a new post belonging to the specified category (post-new.php)

    Much like the Post menu.

    Any suggestions?

Viewing 1 replies (of 1 total)
  • In case it can help others. Ended up going with just the listing out of the Posts part.

    To add a link for post listings by category (products in this example) under the Post heading add the following code to the functions.php file…

    add_action('admin_menu', products_menu');
    function products_menu() {
    add_submenu_page('edit.php', 'Products', 'Products', 'manage_options', 'edit.php?category_name=products' ); }
Viewing 1 replies (of 1 total)
  • The topic ‘WordPress admin menu – different sections for each post category’ is closed to new replies.