• Hi all

    I want to add a Facebook share to my single.php template. I want the output on Facebook to show ONLY the post’s title and the permalink, not the excerpt/description or thumbnail.

    Here’s what I have, but it’s showing the post title, excerpt and thumbnail, and I only want the title and permalink to show:

    &t=<?php the_title(); ?>”>

    Any ideas?

Viewing 1 replies (of 1 total)
  • Thread Starter kristensteingrandt

    (@kristensteingrandt)

    That didn’t work!

    Here’s the code:

    <li><a title="Share on Facebook" target="_blank" href="https://www.facebook.com/sharer.php?u=<?php the_permalink(); ?>&t=<?php the_title(); ?>"><i class="fa fa-facebook fa-sharing-posts"></i></a></li>

Viewing 1 replies (of 1 total)
  • The topic ‘Facebook share – show title & permalink only’ is closed to new replies.