Solved

Wordpress admin menu - different sections for each post category

Posted on 2010-08-12
1
268 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: ZipGrep

ZipGrep is a utility that can list and search zip (.war, .ear, .jar, etc) archives for text patterns, without the need to extract the archive's contents.

One of a set of tools we're offering as a way to say 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

What's this? As a volunteer Page Editor for Experts-Exchange.com, I have noticed that many authors also have blogs, and pull articles from their blogs to post at Experts-Exchange. I appreciate each author sharing their blog content with our site …
I annotated my article on ransomware somewhat extensively, but I keep adding new references and wanted to put a link to the reference library.  Despite all the reference tools I have on hand, it was not easy to find a way to do this easily. I finall…
This video teaches users how to migrate an existing Wordpress website to a new domain.
The purpose of this video is to demonstrate how to set up basic WordPress SEO. This will be demonstrated using a Windows 8 PC. The plugin used will be WordPress SEO by Yoast. Go to your WordPress login page. This will look like the following: myw…

792 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