Render shortcodes inside Quiz results

I'm trying to show different shortcodes based on the quiz results, but when I put the shortcodes inside the text field they don't get rendered.

So I'm asking if this could be possibly included in future updates ?

  • Adam Czajczyk
    • Support Gorilla

    Hi Anthony

    I hope you're well today!

    I checked that and I can confirm that behavior. This is because the "result content" is fetched directly form the database (it's not a custom post) so it's not processed through usual WP filters.

    I think it might be possible to change it but I"ll need to consult our developers about how to do this. I've already passed this question to them and am awaiting response. Please keep an eye on this ticket and we'll update you here as soon as possible.

    Kind regards,

  • Konstantinos Xenos
    • Rubber Duck Debugger

    Hi Anthony !

    You could add this hook into your functions.php ( preferably the child-themes ) and give it a try. This basically filters the "result" and runs the shortcodes as well.

    add_filter( 'forminator_quizzes_render_nowrong_result', 'allow_shortcodes_on_quizz_results', 15 );
    function allow_shortcodes_on_quizz_results( $content ) {
    	return do_shortcode( $content );


Thank NAME, for their help.

Let NAME know exactly why they deserved these points.

Gift a custom amount of points.