Question is basically the title.
As it stands there is no "ask question" button anywhere on the page when the user is not logged in – how would I go about rectifying this?
At the moment, if you want to display the
Ask Question button on the list question page, you can change the permission in the Dashboard > Q&A > Settings and allow all role can post a question.
Or, you can open the archive-question.php file and find around line 34.
Replace the following code:
<?php if ( dwqa_current_user_can( 'post_question' ) ) : ?>
with new code:
<?php if ( dwqa_current_user_can( 'read_question' ) ) : ?>
Hope this helps!
Please login or Register to submit your answer