WordPress.org

Ready to get started?Download WordPress

Forums

[resolved] Insert shortcode in php template (2 posts)

  1. jennifer2010
    Member
    Posted 6 months ago #

    Hi Everyone,

    When I try to add this shortcode into my content-single.php template, the result is it shows up like text:
    echo do_shortcode(‘[ultimatesocial_facebook]’);

    But the shortcode of [ultimatesocial_facebook] works and inserts my share button when I insert it within a post.

    Does anyone know what I could be doing wrong?

    Thank you!

  2. jennifer2010
    Member
    Posted 6 months ago #

    Resolved:
    <?php
    echo do_shortcode('[ultimatesocial_facebook]');
    ?>

Reply

You must log in to post.

About this Topic