Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Author Hassan Akhtar

    (@khaxan)

    The scripts are loaded only on the pages where the shortcode is present in the content. So unfortunately do_shortcode won’t work.

    Just put the shortcode in a post, publish it.
    Remember the “id” of the post(in the address bar) after you publish.
    Then use the following code instead of do_shortcode.

    <?php echo ‘<div>’ ?>
    <?php query_posts(‘p=85’); if(have_posts()) : the_post(); ?>
    <?php the_content(); ?>
    <?php endif; ?>
    <?php echo ‘</div>’ ?>

    Replace 85 with your post “id”

    <!– ALL DONE –>

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Unable to load shortcode using do_shortcode’ is closed to new replies.