Welcome to the Treehouse Community

Want to collaborate on code errors? Have bugs you need feedback on? Looking for an extra set of eyes on your latest project? Get support with fellow developers, designers, and programmers of all backgrounds and skill levels here with the Treehouse Community! While you're at it, check out some resources Treehouse students have shared here.

Looking to learn something new?

Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and join thousands of Treehouse students and alumni in the community today.

Start your free trial

WordPress

Where did my "Posts" tab go in the admin dashboard sidebar navigation?

I am taking on a new project and trying to figure out where the "Posts" tab went to in the admin dashboard sidebar navigation. The theme is using the "Bones" theme as a foundation. Where "Posts" usually go there is a "CPT" called "Features" which can be located via this path "bones/library/custom-post-type.php" I'm trying to figure out how this tab is being hidden. I don't even see it when inspecting the admin menu in Google Chrome. Any ideas? Is there a way to hide the "Posts" tab and prevent posts from being used? How can I get this back in place? Thanks!

1 Answer

I found this hook in functions.php and commented out remove posts:

<?php

// REMOVE MENU ITEMS IN ADMIN
add_action( 'admin_menu', 'my_admin_menu_pages' );

function my_admin_menu_pages() {
    // remove_menu_page('edit.php'); //POSTS
    remove_menu_page('edit-comments.php'); //COMMENTS 
}

?>