Cagatay Belgen
asked 7 years ago

I am using “`
[dwqa-latest-answers number="5" title="my title"]

to display latest 5 questions on my home page to attract and encourage people to ask questions.

But the shortcode renders very poor. As you can see below, it generates unnecessary outputs. In terms of SEO, they are very bad. I want to get rid of them (please see the attached picture)

![Screenshot]( "screenshot")

I would really appreciate any help to make Q&A cleaner.

Thanks in advance.
1 Answers
answered 7 years ago

To resolve this issue, you can open the shortcodes.php file in the folder path "".Find the line 164 then Replace it with the following code:

$html .= '<li>'.__( '', 'dwqa' ).' <a href="'.get_permalink( $question_id ).'" title="'.__( '', 'dwqa' ).' '.get_the_title( $question_id ).'">'.get_the_title( $question_id ).'</a></li>';

Hope this helps !

replied 7 years ago

Thank you very much! This plugin is one of the best wordpress plugins out there. If you make a more enhanced, paid version, I will be your customer for sure!
Here’s how it looks (social login integrated)
Here’s how shortcode looks (please browse below main page)

dominic Staff
replied 7 years ago

You’re welcome 😀

Powered by DW Question & Answer Pro