WordPress.org

Ready to get started?Download WordPress

Forums

Add/share function code posts a mess on FB (1 post)

  1. gsbzhanan
    Member
    Posted 2 years ago #

    When I share a blog post, this is what shows up on Facebook with the relevant pic.

    The Sweetness of HootSuite | Inksnatcher
    http://www.inksnatcher.com
    <!--//--><![CDATA[//><!-- PDRTJS_settings_2684520_post_2937={"id":2684520,"unique_id":"wp-post-2937","title":"The%20Sweetness%20of%20HootSuite","permalink":"http:\/\/www.inksnatcher.com\/blog\/the-sweetness-of-hootsuite","item_id":"_post_2937"}; //--><!]]>I’ve been using HootSuite for about t…

    The code is written into the template:

    <?php if ($tz_enable_fb == "true") { /* Display Facebook link if checked in theme options */ ?>
    <li class="fb">?t=<?php the_title(); ?>" title="Post to Facebook">Post to Facebook
    <?php } ?>

    What can I do to simply have the title and first sentence or two of the post?

Topic Closed

This topic has been closed to new replies.

About this Topic