Solved

Wordpress admin menu - different sections for each post category

Posted on 2010-08-12
1
269 Views
Last Modified: 2012-05-10
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
Comment
Question by:kayjay-one
1 Comment
 

Accepted Solution

by:
kayjay-one earned 0 total points
ID: 33447149
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

Free Tool: Site Down Detector

Helpful to verify reports of your own downtime, or to double check a downed website you are trying to access.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

WordPress has made it easy to create scalable sites based on their powerful CMS, but as great as WordPress is, there are some SEO issues that haven’t been addressed out of the box.  Fortunately these problems can be solved with a few plugins.  The f…
WordPress can be pretty daunting, especially for a beginner, so I thought it might be a good idea to write an article to show how easy it is to get started in WordPress and to design a custom theme.  The first step is to check with your hosting comp…
The purpose of this video is to demonstrate how to automatically show related posts at the bottom of a blog post in WordPress. This will be demonstrated using a Windows 8 PC. Plugin “Yet Another Related Posts Plugin” will be used. Go to your…
This video teaches viewers how to create their own website using cPanel and Wordpress. Tutorial walks users through how to set up their own domain name from tools like Domain Registrar, Hosting Account, and Wordpress. More specifically, the order in…

730 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question