WordPress.org

Forums

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

  1. jennifer2010
    Member
    Posted 1 year 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 1 year ago #

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

Topic Closed

This topic has been closed to new replies.

About this Topic