WordPress.org

Support

Support » How-To and Troubleshooting » Add/share function code posts a mess on FB

Add/share function code posts a mess on FB

  • gsbzhanan
    Member

    @gsbzhanan

    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?

  • The topic ‘Add/share function code posts a mess on FB’ is closed to new replies.