Welcome to the Question2Answer Q&A. There's also a demo if you just want to try it out.
+3 votes
927 views
in Plugins by

I am trying to use the featured questions plugin: https://github.com/NoahY/q2a-featured

I realized that it repeats the featured questions in every question page. Is it possible to change the code in order to include the featured questions only in the first question page? It seems that it is happening here: https://github.com/NoahY/q2a-featured/blob/master/qa-featured-layer.php#L31

However, it is not clear why this is really happening.

Q2A version: 1.7.0

1 Answer

+4 votes
by
selected by
 
Best answer

Maybe adding the following condition to this line:

&& (int) qa_get('start') == 0

by
I had a problem in the loop with this plugin with infinite scroll, the problem was the featured question was appearing multiple times after the loop ended, and adding this bit of code solved the problem! Thanks a lot!
by
Please how do i add the code to the line 11 because i pasted the code before and after the codes on the line and the website was inaccessible... please help
...