How To Add Social Media Buttons To Multiple Posts On One Page (1 post)

  1. robobobo100
    Posted 3 years ago #

    Hey guys,

    I'm building this new theme, and on the homepage I've got multiple posts - fbcompetitions.com

    As you can see I've got social media buttons in each post, however they just share the homepage and not the actual url of the post. How can I set this up so they share the post?

    This is the code I currently have in my while loop

    <div class="post_entry">
    			<div class="thumbnail">
    			<?php the_post_thumbnail(); ?>
    <div class="post_left">
    			<div class="post_title">
    				<h1><a href="<?php the_permalink(); ?>"><?php the_title(); ?></a></h1>
    <div class="comp_dates">
    <p>Closing Date: <?php the_field('expiry_date');?></p>
    <div class="socialicons"><span class='st_facebook_vcount' displayText='Facebook'></span><span class='st_twitter_vcount' displayText='Tweet'></span><span class='st_email_vcount' displayText='Email'></span>

    Any ideas?


Topic Closed

This topic has been closed to new replies.

About this Topic