WordPress.org

Forums

FBF Facebook page Feed Widget
[resolved] Links in description not working (3 posts)

  1. Gen00b
    Member
    Posted 2 years ago #

    Hi, great plugin. Was wondering if there's a fix for this: I'm displaying the facebook posts including description, but any links inside that description don't link to where they should (instead of facebook.com they add my site root in front of the URL?)

    You can see it here: http://test.ebooij.com/

    Any help would be appreciated :)

    http://wordpress.org/extend/plugins/fbf-facebook-page-feed-widget/

  2. lakshmananphp
    Member
    Plugin Author

    Posted 2 years ago #

    Hi Gen,

    Thanks for your feedback!

    Here is the fix

      Step 1 : Download the plugin (fbf-facebook-page-feed-widget) via FTP
      wp-content/plugins/fbf-facebook-page-feed-widget/

      step 2 : Open the file fbf_facebook_page_feed.php by using any editor (PHP designer or notepad++ or any one of your choice)

      Step 3 : Just replace this code block on line number 76

      if ($options['show_description'] != '') {
      	   $entry[$i]->description = str_replace('href="', 'href="http://www.facebook.com', $entry[$i]->description);    //This is to fix the url issue.
      	   $returnMarkup .= "<div class=\"fbf_desc\">".$entry[$i]->description."</div>"; // Full content
          }

      step 4 : save the file and upload the plugin(overwrite).

    Hope it helps!

    Please let me know still you have any issues!

  3. Gen00b
    Member
    Posted 2 years ago #

    Excellent, works like a charm! Thank you.

Topic Closed

This topic has been closed to new replies.

About this Plugin

  • FBF Facebook page Feed Widget
  • Frequently Asked Questions
  • Support Threads
  • Reviews

About this Topic

Tags

No tags yet.