So, for example.
I ask a question – Write a title, description and enter question tags.
When that question is posted on the DW Q&A question list page I want the question’s tags to be displayed with the question instead of the category. is this possible?
You can open the content-question.php file in the templates folder of dw-question-answer plugin then add the following code under line 16:
<?php echo get_the_term_list( get_the_ID(), 'dwqa-question_tag', '<span class="dwqa-question-tag">' . __( 'Question Tags: ', 'dwqa' ), ', ', '</span>' ); ?>
Thanks for the update!
I’m facing issues in getting this to work. After adding the line of code, the DW Q&A question list page doesn’t load. I’ve tried almost everything.
Can you please help me with this?
Please login or Register to submit your answer