Adding jetpack's sharing buttons on each post line
-
Hi, Is there a way using LCP to add jetpack’s sharing buttons for each post sorted?
I want to make a bit like archive make it.
Currently my setup (using a template) is displaying the thumnail (centered) then post title (bold and centered as well a a bit bigger) then the excerpt (full). Just after that or below that, I would like to see jetpack’s sharing button.
Is there a way to do that?
Current template look like this:
<?php $lcp_display_output = ''; $lcp_display_output .= '<ul>'; $lcp_display_output .= '<hr />'; foreach ($this->catlist->get_categories_posts() as $single): $lcp_display_output .= $this->get_thumbnail($single); $lcp_display_output .= '<large style="text-align: center;">'.$this->get_post_title($single).'</large>'; $lcp_display_output .= $this->get_excerpt($single, 'p', 'your p style'); $lcp_display_output .= '</li>'; $lcp_display_output .= '<hr />'; endforeach; $lcp_display_output .= '</ul>'; $this->lcp_output = $lcp_display_output;
and the LCP shortcode look like this:
[catlist id=785 numberposts=-1 title_class="lcp_title" excerpt=full title_tag=h5 excerpt_tag=p excerpt_class=lcp_excerpt thumbnail="yes" thumbnail_size="600,1200 " thumbnail_class="aligncenter" template=shu-ranking]
- The topic ‘Adding jetpack's sharing buttons on each post line’ is closed to new replies.