-
Notifications
You must be signed in to change notification settings - Fork 1
Use Shortcode
The DWQA Embed Question allows you to run a shortcode inside of the Text widget easily by using the shortcode below:
[dwqa_question]http://yoursite.com/question/<question-title>/[/dwqa_question]
However, before pasting the shortcode above onto the text widget, you make sure that the WordPress theme supports this. In case your theme can not show the embedded question when adding the shortcode, just paste this to your functions.php file in wp-content/themes/[theme_name].
add_filter( 'widget_text', 'do_shortcode');
Please note that you should place the code after the curly closing brackets ' }'.
Now, you will be able to use the shortcode within the text widget as usual.
Please note that this way can only apply for the wordPress themes which installed the DW Question & Answer plugin.