Home Forums Add Tags And Category to Page and Post Types Causes main menu to disappear Reply To: Causes main menu to disappear

#3796

CotswoldPhoto

I too had the disappearing menu problem, and figured it was because the script was loading in both frontend and back, so simply added a conditional isadmin() check around the last 3 lines of the add-tags-and-category-to-page.php

Now it works in my admin, and my menu loads. Simple.

if ( is_admin() ) {
add_action(‘admin_init’, ‘add_tags_and_category_for_post_types’);
add_filter(‘pre_get_posts’, ‘tcp_add_post_types_in_category_and_tag_template’);
include(‘plugin_interface.php’);
}