0

I have a wordpress website and I want to display this at the end of every blog post:

<h5 style="margin-bottom: 15px;margin-top:35px;"><em><strong>Text:</strong></em>
[shareaholic app="share_buttons" id="5374371"]  

If I add this to single.php which shows the pages I want to modify, the shortcode won't work.

<article id="post-<?php the_ID(); ?>" <?php post_class(); ?>>

        <?php
        /* Featured Image */
        if(has_post_thumbnail()) { ?>
        <p class="post-thumbnail">
            <?php the_post_thumbnail('full'); ?>
        </p>
        <?php } 

        the_content();

        the_tags('<p>'.__('Tags:', 'sntheme'),', ','</p>');

        /* Show post page links */
        wp_link_pages( array( 'before' => '<p>' . __( 'Pages:', 'sntheme' ), 'after' => '</p>' ) ); 
        ?>
          <h5 style="margin-bottom: 15px;margin-top:35px;"><em><strong>Text:</strong></em>
[shareaholic app="share_buttons" id="5374371"]
    </article><!-- end post -->

Is there a workaround for this?

1 Answer 1

1

Yes - http://wordpress.org/plugins/shareaholic/installation/

<?php echo do_shortcode ('[shareaholic app="share_buttons" id="5374371"]'); ?>
Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.