DesignWall
Forum Replies Created
-
Forum: Plugins
In reply to: [DW Question & Answer] how to use post id as slug when creating new questionYou can add to functions.php of your theme folder with following code:
add_action( ‘dwqa_add_question’, ‘dwqa_change_post_name_to_id’ );
// this action make sure post name cannot change when update question
add_action( ‘dwqa_update_question’, ‘dwqa_change_post_name_to_id’ );
function dwqa_change_post_name_to_id( $question_id ) {
if ( ‘dwqa-question’ == get_post_type( $question_id ) ) {
$args = array(
‘ID’ => $question_id,
‘post_name’ => $question_id
);wp_update_post( $args );
}
}with old question, you can using this query in mysql to change post name to post ID
UPDATE wp_posts
SET post_name = ID
WHERE post_type = ‘dwqa-question’Regards,
Kevin from DesignWall.Forum: Plugins
In reply to: [DW Question & Answer] GroupsHi
I have checked about your issue and the DW Q&A plugin does not support this option. If you want to have it, we are ready to help you as a custom work with a charge of the fee, you can contact with me via email: hi@designwall.com. We will discuss more for this feature.
[ Signature moderated ]Forum: Plugins
In reply to: [DW Question & Answer] Error anytime installing another theme or pluginThis issue will be fixed in DW Question & Answer 1.4.3
For now, you can open
wp-content/plugins/dw-question-answer/dw-questions-answer.phpand remove following code in line 72:add_action( ‘upgrader_process_complete’, array( $this, ‘register_upgrade_plugin’ ), 10, 2 );
Regards,
Kevin from DesignWall.Forum: Plugins
In reply to: [DW Question & Answer] Paragraph HTML tags added when editing in the frontendThis issue will be fixed an upcoming version of DW Question & Answer.
Regards,
Kevin from DesignWall.Forum: Plugins
In reply to: [DW Question & Answer] Disabling tagsWhen you update new version of DW Question & Answer and it still working on your theme.
Regards,
Kevin from DesignWall.Forum: Plugins
In reply to: [DW Question & Answer] How to prevent users from changing the status Closed?You can copy
content-single-question.phpfile inwp-content/plugins/dw-question-answer/templates/towp-content/themes/<your theme folder>/dwqa-templates/and replace line 26:<?php if ( dwqa_current_user_can( ‘edit_question’, get_the_ID() ) ) : ?>
with following code:
<?php if ( dwqa_current_user_can( ‘edit_question’ ) ) : ?>
Regards,
Kevin from DesignWall.Forum: Plugins
In reply to: [DW Question & Answer] Answer verify by administratorYou can open the
/wp-content/plugins/dw-question-answer/inc/Handle.phpfile in line from 81 to 83 :$answers[‘post_status’] = isset( $_POST[‘save-draft’] ) ? ‘draft’ : ( isset( $_POST[‘dwqa-status’] ) && $_POST[‘dwqa-status’] ? $_POST[‘dwqa-status’] : ‘publish’ );
and replace with following code:
$answers[‘post_status’] = ‘pending’;
Regards,
Kevin from DesignWall.Forum: Plugins
In reply to: [DW Question & Answer] How to add categories on side BarYou can use this extension: https://www.designwall.com/wordpress/dwqa-extensions/dwqa-widgets/
Forum: Plugins
In reply to: [DW Question & Answer] Disabling tagsYou can copy the
wp-content/plugins/dw-question-answer/templates/question-submit-form.phpfile towp-content/themes/your-theme-folder/dwqa-templatesand remove from the line 45 to 49:<p>
<label for=”question-tag”><?php _e( ‘Tag’, ‘dwqa’ ) ?></label>
<?php $tags = isset( $_POST[‘question-tag’] ) ? $_POST[‘question-tag’] : ”; ?>
<input type=”text” class=”” name=”question-tag” value=”<?php echo $tags ?>” >
</p>Regards,
Kevin form DesignWall.Forum: Plugins
In reply to: [DW Question & Answer] For each category – a list email notificationsWe’re in progress to work on the current plan to enhancement for DW Question & Answer, yet if you’re in urgent need for this feature, we can handle this as custom work.
Forum: Plugins
In reply to: [DW Question & Answer] Logo covering the questionThis issue will be fixed on DW Question & Answer 1.4.3.
For now, you can add the following custom css code via this plugin Simple Custom CSS:
.dwqa-questions-list .dwqa-question-item a {
position: inherit;
}Forum: Plugins
In reply to: [DW Question & Answer] How Do The Email Notifications WorkYour server doesn’t support for sending mail programs to your customers such as SMTP, please install the third-party plugin such as wpMandrill to send email as usual.
Regards,
Kevin from DesignWall.Forum: Plugins
In reply to: [DW Question & Answer] How Do The Email Notifications WorkPlease log into Dashboard > Question > Settings > Email > ‘New Answer/Comment notifications’ and make sure you have ticked the ‘Enable’ checkbox.
If it still doesn’t work, please let me know.
Regards,
Kevin from DesignWall.Forum: Plugins
In reply to: [DW Question & Answer] For each category – a list email notificationsIf you want, we can make this feature as a premium extension.
Regards,
Kevin from DesignWall.Forum: Plugins
In reply to: [DW Question & Answer] Doesn't work the answer to the questionCan you provide me your website url for a further checking?
Regards,
Kevin from DesignWall.