• Resolved amdevries

    (@amdevries)


    Hi there!

    I am WordPress 4.6.1 running Modern Vintage theme at:http://modernhipster.com/

    This theme heavily uses shortcode, and so when I tried to create a page section and insert the widget shortcode, you can see that it didn’t work (halfway down the page you will just see the shortcode text).

    Is there any work around? I already tried the suggestion of
    <textarea class=”widefat” onclick=”this.select()” readonly=”readonly”>[widget id=”lw_instagram-3′. $widget->id .'”]</textarea>

    But it did the same thing.

    many thanks in advance,
    Amanda

Viewing 8 replies - 1 through 8 (of 8 total)
  • Thread Starter amdevries

    (@amdevries)

    I’ve left both of them there, and yes, I put them in the text, not visual editor

    Plugin Author shazdeh

    (@shazdeh)

    It seems the theme is not running shortcodes (in WordPress you have to use do_shortcode so the shortcodes are executed). Try adding a different shortcode in there, say a shortcode from the theme or one from a different plugin.

    Thread Starter amdevries

    (@amdevries)

    Hi there,

    Thanks for responding. There is indeed shortcodes from the theme on other pages; I tried putting this shortcode in other pages also, i.e. beside the theme shortcode and it also didn’t work there.

    For example, the section called “About” is using shortcodes from the theme…

    Hope this helps
    Amanda

    Thread Starter amdevries

    (@amdevries)

    @shazdeh do you have any other ideas? I am indeed using shortcodes from the theme as you suggested..

    Plugin Author shazdeh

    (@shazdeh)

    Sorry about the delay in response.
    The plugin is fairly straightforward, uses WP’s API to register a shortcode. It has to be something from the theme, however unfortunately the theme you are using a premium one and I don’t have access to it. If you like, I can provide you with my personal email address, and follow up from there.

    Thread Starter amdevries

    (@amdevries)

    Sure, that would be great, thank you!

    Plugin Author shazdeh

    (@shazdeh)

    No problem, you can contact me at: hassan dot derakhshandeh, it’s gmail.

    Thread Starter amdevries

    (@amdevries)

    Got it to work using

    if ($current_ID==526 ): ?>
    <div class=”container”>
    <?php echo Widget_Shortcode::get_instance()->do_widget( array(
    ‘id’ => ‘lw_instagram-3’
    ) ) ?>
    </div>
    <?php endif; ?>

Viewing 8 replies - 1 through 8 (of 8 total)
  • The topic ‘Conflict with theme’s shortcodes?’ is closed to new replies.