Go Premium for a chance to win a PS4. Enter to Win

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 272
  • Last Modified:

Wordpress admin menu - different sections for each post category

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)
0
kayjay-one
Asked:
kayjay-one
1 Solution
 
kayjay-oneAuthor Commented:
In case it can help others.  

To list posts by category in the sub-menu under the Posts heading, using the category Services for example...
add_action('admin_menu', 'services_menu');
function services_menu() {
add_submenu_page('edit.php', 'Services', 'Services', 'manage_options', 'edit.php?category_name=services' ); }

Open in new window

0

Featured Post

Keep up with what's happening at Experts Exchange!

Sign up to receive Decoded, a new monthly digest with product updates, feature release info, continuing education opportunities, and more.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now