Welcome to the Question2Answer Q&A. There's also a demo if you just want to try it out.

Featured Question Lists

+3 votes
asked Nov 14, 2016 in Plugins by arjunsuresh
edited Nov 16, 2016 by arjunsuresh

The Featured Plugin by Noah allows to make questions featured and let them come on top of question lists. This plugin adds a "Featured" tab for question lists and shows all the featured questions. Any question can be featured/unfeatured by clicking on a button. Also, featured questions can be listed "category-wise".

Screenshots attached..



Q2A version: 1.7
commented Nov 15, 2016 by Gurjyot Singh
This is a nice idea, it can also be used for a lot of more purposes if website owners think about it properly. :)
Finally, will this feature link be on the main menu or on just sub-menu of Questions page?
commented Nov 15, 2016 by arjunsuresh
yes, a lot more options. On my site I'm adding it for Corrected Questions/Ambiguous Questions etc. Also, for other filters. But these are not generic to all Q2A users. Can be used for even blog purpose with slight modification..

This links to only the subnav in Question Pages. But you can add a navlink to the corresponding URL in the navbar.
commented Nov 15, 2016 by Gurjyot Singh
So is this plugin ready to be downloaded and used...?
commented Nov 15, 2016 by Jonatan
It's a good idea for a plugin.
Is it possible to set an order for the featured questions?
(Define which question will appear first in the list.)
commented Nov 16, 2016 by arjunsuresh
@Gurjyot Yes, Sorry I had forgotten to add the link. Added now.
@Jonathan Currently the featured questions follow the created date order.

2 Answers

+1 vote
answered Apr 26, 2017 by Piotr Baranowski
edited Apr 26, 2017 by Piotr Baranowski
Hello @arjunsuresh,
How to fix this problem?

PHP Fatal error:  Call to undefined function qa_db_postmeta_set() in qa-include/qa-base.php(614) : eval()'d code on line 107 .

Line 107 is about qa_db_postmeta_set() function :/

LAYER file from plugin contains:

                        $q_view['form']['buttons'][] = array("tags" => "name='feature-button' value='$postid' title='".qa_lang_html('featured_lang/feature_pop')."'", "label" => qa_lang_html('featured_lang/feature'));

and then my button name is id from post, not "feature" like in language file. Maybe this will help You to fix this:)

Heeelp please ;)
commented Apr 28, 2017 by Piotr Baranowski
Yes, non english - but I know how to change this from language file ;) The problem is, that I have "number", not "feature" text on button ;)
Maybe something from source will help You to fix this issue:

<input name="feature-button" value="252697" type="submit" class="qa-form-light-button qa-form-light-button-0" original-title="Feature this question">

SO VALUE is showing as "name" of button .

My script has MANY core hacks and installed plugins, but i installed on standard q2a 1.7.4 too, and I have same problem :/
commented Apr 28, 2017 by Arjun Suresh
yes, the value of the button is the question id and it must be number. Actually "Feature" should come exactly after the close of the <input> tag you have shown. What exactly follows that?
commented Apr 28, 2017 by Piotr Baranowski
can You explain Your question please? You ask me about what's in code (source) after ?
commented Apr 28, 2017 by arjunsuresh
Yes, or can you give me the link to the page- but "Feature" button might not be visible to public right? If you have the new Q2A site which you tried on that is better.
0 votes
answered Oct 3 by ghassem

There is a new issue with version 1.8.0 of q2a:

I receive the following warning on

Notice: Undefined index row qa-include/qa-theme-base.php on line 1386

In addition to the fact it does not work in version 1.8.0 of q2a

My installed version of your plugin is Feature Questions v1.1 by Arjun Suresh (latest)