• Resolved no10design

    (@no10design)


    Hi,

    Is it possible to use shortcodes with the plugin? I’ve tried to use my own custom templates e.g. [INSERT_ELEMENTOR id=”27360″] inside the body text body of the review but it doesn’t show on the frontend of the review.

    Any help you can provide on this would be amazing.

    Thank you 🙂

Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Author Gemini Labs

    (@geminilabs)

    If you need to display a third-party shortcode inside of a review, the best way to do this is to use the do_shortcode function inside a custom review template. Please see the Help > FAQ page which explains how to use the templates in your child theme.

    Thread Starter no10design

    (@no10design)

    Many thanks for your help and really fast response. I really appreciate it.

    Would that just mean adding the custom code on this page to the custom review template?:

    https://developer.ww.wp.xz.cn/reference/functions/do_shortcode/

    Plugin Author Gemini Labs

    (@geminilabs)

    <?php defined('WPINC') || die; ?>
    
    <div class="glsr-review">
        {{ title }}
        {{ rating }}
        {{ date }}
        {{ assigned_to }}
        {{ content }}
        <?php
            if (shortcode_exists('INSERT_ELEMENTOR')) {
                echo do_shortcode('[INSERT_ELEMENTOR id=27360]');
            }
        ?>
        {{ avatar }}
        {{ author }}
        {{ response }}
    </div>
    • This reply was modified 6 years, 2 months ago by Gemini Labs.
Viewing 3 replies - 1 through 3 (of 3 total)

The topic ‘Use Shortcodes’ is closed to new replies.