Currently I have 2 categories, Questions and Announcements.
How can I modify this template to show Announcements first and Questions second.
<?php if ( dwqa_has_question() ) : ?>
<?php while ( dwqa_has_question() ) : dwqa_the_question(); ?>
<?php if ( get_post_status() == ‘publish’ || ( get_post_status() == ‘private’ && ( dwqa_current_user_can( ‘edit_question’, get_the_ID() ) || dwqa_current_user_can( ‘manage_question’ ) || get_current_user_id() == get_post_field( ‘post_author’, get_the_ID() ) ) ) ) : ?>
<?php dwqa_load_template( ‘content’, ‘question’ ) ?>
<?php endif; ?>
<?php endwhile; ?>
Thanks!
At the moment, the plugin does not support to sort by Category on the Question List page.
The plugin will be showing the latest question and question with a new answer/comment.I have sent and notifed to our technical team about this issue, we will check and discuss about it.
Please login or Register to submit your answer