Admin Menu Link For QA disappeared

Inside of WP admin I used to see the QA admin section 'Questions', now is no longer there.

I can still access it if I enter the edit.php?post_type=questions, but I would rather have a link on the side. How can I get it back?

Or better yet, how can I change the order of Questions plugin in the admin_menu?


  • aecnu

    Greetings henry_liu,

    Sorry to hear that your "Questions" menu selection has disappeared and there is also almost no doubt in my mind that it is a conflict of some sort.

    Sure we may be able to change the order by making a modification to the core files of the Q&A plugin, but then this will need to be done every update.

    We can use something like the Admin Menu Editor plugin to change the menu order or we can try to figure out where the conflict is at exactly by performing standard troubleshooting protocol.

    Standard plugin trouble shooting protocol - first to switch to the Twenty Eleven theme just long enough to check for the problem - if the problem still exists next involves deactivating all plugins except the plugin in question and then see if the issue still exists.

    If it does not, then you want to activate plugins one at a time testing in between to see if the issue returns. Even when you find one plugin, it may be in your interest to deactivate the problem plugin and continue testing the rest of the plugins to insure no others are also conflicting.

    You will know the conflict when the issue returns and which plugin(s) you activated that cause the issue.

    Please advise which path you have taken and if there are any plugin conflicts and if so what the plugins are that are conflicting.

    Cheers, Joe

  • henry_liu

    Joe, thanks for the response.
    What I did was to find out where in the code the custom post-type was registered, and I added the the 'menu_position' => 52 to the array(); This essentially fixed the menu position and everything starts to show again. This is the /core/core.php, starting with line 227...

    $args = array(
    			'public' => true,
    			'rewrite' => array( 'slug' => QA_SLUG_ROOT, 'with_front' => false ),
    			'has_archive' => true,
    			'capability_type' => 'question',
    			'capabilities' => array(
    				'read' => 'read_questions',
    				'edit_posts' => 'edit_published_questions',
    				'delete_posts' => 'delete_published_questions',
    			'map_meta_cap' => true,
    			'supports' => array( 'title', 'editor', 'author', 'comments', 'revisions' ),
    			'labels' => array(
    				'name'			=> __('Questions', QA_TEXTDOMAIN),
    				'singular_name'	=> __('Question', QA_TEXTDOMAIN),
    				'add_new'		=> __('Add New', QA_TEXTDOMAIN),
    				'add_new_item'	=> __('Add New Question', QA_TEXTDOMAIN),
    				'edit_item'		=> __('Edit Question', QA_TEXTDOMAIN),
    				'new_item'		=> __('New Question', QA_TEXTDOMAIN),
    				'view_item'		=> __('View Question', QA_TEXTDOMAIN),
    				'search_items'	=> __('Search Questions', QA_TEXTDOMAIN),
    				'not_found'		=> __('No questions found.', QA_TEXTDOMAIN),
    				'not_found_in_trash'	=> __('No questions found in trash.', QA_TEXTDOMAIN),
               'menu_position' =>  52      //Added To Fix Menu

Thank NAME, for their help.

Let NAME know exactly why they deserved these points.

Gift a custom amount of points.