Solved

Wordpress admin menu - different sections for each post category

Posted on 2010-08-12
1
265 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
Comment Utility
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

Top 6 Sources for Identifying Threat Actor TTPs

Understanding your enemy is essential. These six sources will help you identify the most popular threat actor tactics, techniques, and procedures (TTPs).

Join & Write a Comment

Who says nothing in life is free? WordPress.com is a freebie. WordPress.org's downloadable publishing platform is free. Heck, even WordPressMU is free. WordPress is an open source project, which means it can be used on any personal or commerc…
Wordpress Horizontal Drop-Down Menu In this tutorial I will show you had to add a WordPress horizontal navigation menu to your theme. I have searched and searched for a good tutorial on creating a WordPress nav menu without adding a plug-in or us…
The purpose of this video is to demonstrate how to properly insert a Vimeo Video into a WordPress site or Blog. This will be demonstrated using a Windows 8 PC. Go to your WordPress login page. This will look like the following: mywebsite.com/wp…
The purpose of this video is to demonstrate how to add AdSense Ads to a WordPress Website, and how to set up WordPress to automatically place Ads in Sidebars. This will be demonstrated using a Windows 8 PC. Log into your AdSense account. : Cli…

762 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

Need Help in Real-Time?

Connect with top rated Experts

8 Experts available now in Live!

Get 1:1 Help Now