WordPress.org

Forums

FBF Facebook page Feed Widget
Exceprt of description? (10 posts)

  1. Wermfud
    Member
    Posted 2 years ago #

    Is there a way I can show only an excerpt of the post/description in my feed with your widget? BTW, love it, thank you for making one that isn't overly styled and hard to read.

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

  2. lakshmananphp
    Member
    Plugin Author

    Posted 2 years ago #

    Hi Wermfud,

    Currently there is no option to limit the description

    You could try it by replacing line number 119

    $returnMarkup .= "<div class=\"fbf_desc\">".$desc."</div>"; // Full content

    with this

    $returnMarkup .= "<div class=\"fbf_desc\">".substr($desc,0,200)."</div>"; // Excerpt content

    If you want to limit excerpt other than 200 characters, add that instead of 200.

    Hope the new version will have the option to limit the number of characters in description

    Thanks
    Lakshmanan

  3. Mairus
    Member
    Posted 2 years ago #

    Hello.
    It works, but the images have gone too... it would be cool if we can limit the character quantity and keep the image.
    Your plugin is very easy to install and to customize.
    I'm testing it at my test page: http://mairus.com/wp-teste/
    Thank you and best regards.

  4. lakshmananphp
    Member
    Plugin Author

    Posted 2 years ago #

    Hi Mairus,

    Glad that you find this plugin as user friendly.

    Facebook feed outputs title, description and time.

    Images are also the part of description. So while you trim description, images will also be trimmed.

    Alternatively there should be an option to show images only, images with text, trim only description like that.

    I'm working on it and update it soon

    Any how, I will try a temporary fix and let you know.

    Thanks again
    Lakshmanan

  5. earthjibber
    Member
    Posted 2 years ago #

    Thanks! This fix works great! However, I noticed that the like button disappears when I add this. Is there a way to shorten the description and keep the like button?

  6. lakshmananphp
    Member
    Plugin Author

    Posted 2 years ago #

    Hi earthjibber,

    Have you used short code or widget?

    Enable like button in your widget options, if you are using it as widget.

    Thanks
    Lakshmanan

  7. earthjibber
    Member
    Posted 2 years ago #

    I'm using the shortcode option, but I realized that it wasnt showing because I didn't have any posts yet.

    However, when I click the like button I get this error:

    Blocked a frame with origin "https://www.facebook.com" from accessing a frame with origin "http://mysite.com". The frame requesting access has a protocol of "https", the frame being accessed has a protocol of "about". Protocols must match.

    Any help is greatly appreciated, I also posted this issue on the support forum.

    thanks!

  8. lakshmananphp
    Member
    Plugin Author

    Posted 2 years ago #

    Hi

    Try this temporary fix

    Thanks
    Lakshmanan

  9. earthjibber
    Member
    Posted 2 years ago #

    I know it's temporary but the fix works, thanks!

  10. colbywhitted
    Member
    Posted 1 year ago #

    Hello!

    Great plugin! Thanks for your hard work.

    I've replaced this: $returnMarkup .= "<div class=\"fbf_desc\">".$desc."</div>";

    with this: $returnMarkup .= "<div class=\"fbf_desc\">".substr($desc,-1000)."</div>";

    And it works great as long as you're okay having an excerpt start at the end of the description.

    Alternatively I would think you could do something like this:

    $returnMarkup .= "<div class=\"fbf_desc\">".substr($desc,0,200). substr($desc,-400)"</div>";

    I haven't tested the directly above but it might be worth a try to get a beginning description AND the image together.

    http://largerthanlife.rvn8.com/

    Thank you very much

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