Javier Llorente
asked 10 years ago

Hi, 
With the last update, I can’t see the page with the questions in BackEnd. Before the upgrade was a submenu with the questions.
https://dl.dropboxusercontent.com/u/110261172/Imagen2.png
Othe issue is that now I can’t change the status of questions (open, close..). And in the top of question appear two times the dropdown Public
https://dl.dropboxusercontent.com/u/110261172/Imagen1.png
Other small problem is that as the questions are like post, appear other plugins like Shareaholic or Ultimate Social Deux, or Comments input.
Thanks so much.

2 Answers
DominicStaff
answered 10 years ago

Issue1: To resolve this issue, you can open the dw-question-answer.php file in the folder path “wp-content\plugins\dw-question-answer”. Find/Replace the line 141 to line 224, with new code:


/* Question Posttype Registration */
    $question_labels = array(
        'name' => _x('Question', 'post type general name'),
        'singular_name' => _x('Question', 'post type singular name'),
        'add_new' => _x('Add New', 'theme'),
        'add_new_item' => __('Add New Question'),
        'edit_item' => __('Edit Question'),
        'new_item' => __('New Question'),
        'all_items' => __('All Questions'),
        'view_item' => __('View Question'),
        'search_items' => __('Search Question'),
        'not_found' =>  __('No questions found'),
        'not_found_in_trash' => __('No questions found in Trash'),
        'parent_item_colon' => '',
        'menu_name' => __('DW Q&A')
    );
    $question_args = array(
        'labels' => $question_labels,
        'public' => true,
        'publicly_queryable' => true,
        'show_ui' => true,
        'show_in_menu' => true,
        'query_var' => true,
        'rewrite' => array(
            'slug' => $question_rewrite,
            'with_front'    => false
        ),
        'capability_type' => 'post',
        'has_archive' => true,
        'hierarchical' => true,
        'menu_icon' =>  '',
        'supports' => array( 'title', 'editor', 'comments', 'author', 'page-attributes' ),
        'capabilities' => array(
            'edit_post' => 'dwqa_can_edit_question',
            'edit_posts' => 'dwqa_can_edit_question',
            'edit_others_posts' => 'dwqa_can_edit_question',
            'publish_posts' => 'dwqa_can_post_question',
            'read_post' => 'dwqa_can_read_question',
            'read_private_posts' => 'read_private_posts',
            'delete_post' => 'dwqa_can_delete_question'
        )
    );
    register_post_type( 'dwqa-question', $question_args );
    
    /* Question Posttype Registration */
    $answer_labels = array(
        'name' => _x('Answer', 'post type general name'),
        'singular_name' => _x('Answer', 'post type singular name'),
        'add_new' => _x('Add New', 'theme'),
        'add_new_item' => __('Add new answer'),
        'edit_item' => __('Edit answer'),
        'new_item' => __('New Answer'),
        'all_items' => __('All Answers'),
        'view_item' => __('View Answer'),
        'search_items' => __('Search Answer'),
        'not_found' =>  __('No Answers found'),
        'not_found_in_trash' => __('No Answers found in Trash'),
        'parent_item_colon' => '',
        'menu_name' => __('Answer')
    );
    $answer = array(
        'labels' => $answer_labels,
        'public' => true,
        'publicly_queryable' => true,
        'show_ui' => true,
        'show_in_menu' => 'edit.php?post_type=dwqa-question',
        'query_var' => true,
        'rewrite' => true,
        'capability_type' => 'post',
        'has_archive' => false,
        'hierarchical' => true,
        'menu_icon' =>  '',
        'supports' => array( 'title', 'editor', 'comments', 'custom-fields', 'author', 'page-attributes' ),
        'capabilities' => array(
            'edit_post' => 'dwqa_can_edit_answer',
            'edit_posts' => 'dwqa_can_edit_answer',
            'edit_others_posts' => 'dwqa_can_edit_answer',
            'publish_posts' => 'dwqa_can_post_answer',
            'read_post' => 'dwqa_can_read_answer',
            'read_private_posts' => 'read_private_posts',
            'delete_post' => 'dwqa_can_delete_answer'
        )
    );
    register_post_type( 'dwqa-answer', $answer );

issue2: You can send me your site for further checking.

Paresh Koli
replied 10 years ago

Why not just rectify this issue with an update?

Dominic Staff
replied 10 years ago

Of course ! We will fix this issue in the next version. We will release as soon as possible.

DominicStaff
answered 10 years ago

If you want to hide the social share section in the DW Q&A page, you can add the following code to the style.css file:

/* Single question page */
.single-dwqa-question .us_posts_top {display: none; }
.single-dwqa-question .shareaholic-canvas {display: none; }

– To resolve the issue with the dropdown (Public,..) section, please deactivate  all plugins to see if this resolves the problem. If this works, re-activate the plugins one by one and let us know if you find the problematic plugin(s). Maybe there is a conflict in plugins.

Powered by DW Question & Answer Pro