Causes main menu to disappear

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

This topic contains 17 replies, has 1 voice, and was last updated by  Kelicia 2 years, 1 month ago.

Viewing 3 posts - 16 through 18 (of 18 total)
  • Author
    Posts
  • #3778

    Steve

    Where is the service on this plugin? Is there a resolve to the problem?

    #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’);
    }

    #3879

    Kelicia

    Thanks – this worked for me! Not looking forward to having to add that every time the plugin is updated though. (Even if updates are few and far between)

Viewing 3 posts - 16 through 18 (of 18 total)

The topic ‘Causes main menu to disappear’ is closed to new replies.