WordPress.org

Forums

Custom Facebook Feed
[resolved] Dissapears afer include=date (16 posts)

  1. v1rtual1st
    Member
    Posted 11 months ago #

    When I add include=date in shortcode, posts (facebook page posts) disappears like the code becomes broken. Without that it works.

    https://wordpress.org/plugins/custom-facebook-feed/

  2. smashballoon
    Member
    Plugin Author

    Posted 11 months ago #

    Hey v1rtual1st,

    Could you tell me the exact shortcode that you're using so that I can double check it?

    John

  3. v1rtual1st
    Member
    Posted 11 months ago #

    THIS WORKS:
    [custom-facebook-feed id=1476363579242716 showpostsby=me showauthor=false exclude=author,text num=15 desclength=250 cachetime=10 cacheunit=minutes limit=30]
    THIS DOESNT:
    [custom-facebook-feed id=1476363579242716 showpostsby=me showauthor=false exclude=author,text num=15 desclength=250 cachetime=10 cacheunit=minutes limit=30 include=date]

  4. smashballoon
    Member
    Plugin Author

    Posted 11 months ago #

    The issue is that you're using both the 'exclude' and 'include' options in the same shortcode, which are conflicting with each other. If you're using the include option then you shouldn't need to use the exclude option. Which parts of the posts are you trying to display?

  5. v1rtual1st
    Member
    Posted 11 months ago #

    cff-link-title
    cff-link-caption
    cff-post-desc
    date

    - showpostsby me
    - show min 15 posts
    - show max 30 posts
    - cache limit 10 minutes
    - desc length 250 characters

  6. smashballoon
    Member
    Plugin Author

    Posted 11 months ago #

    You can set these options directly on the plugin's 'Customize' page, but if you need to use the shortcode options then the following should work:

    [custom-facebook-feed id=1476363579242716 showpostsby=me showauthor=false include=sharedlinks,desc,date num=15 desclength=250 cachetime=10 cacheunit=minutes limit=30]

    If you're trying to only display a list of links and not any of the other post types then displaying posts by type is actually one of the features of the Pro version of the plugin. The free version only allows you to display all posts from your feed and not just specific types.

    John

  7. v1rtual1st
    Member
    Posted 11 months ago #

    It is still broken.

    1. When I put provided shortcode feed displays but still without date.
    2. When I put shortcode with only include date then feed also disappears.

    [custom-facebook-feed id=1476363579242716 include=date]

  8. smashballoon
    Member
    Plugin Author

    Posted 11 months ago #

    Hey v1rtual1st,

    Could you put the shortcode in my last response into a page on your site and then send me a link so that I can view it?

    John

  9. v1rtual1st
    Member
    Posted 11 months ago #

    I have created one page with each shortcode example tried + provided link to each:

    1. custom facebook feed include date only - doesn't work
    Shortcode:[custom-facebook-feed id=106976563522 include=date]
    URL: http://lolcore.org/custom-facebook-feed-include-date-only/

    2. custom facebook feed provided shortcode - works but there is no date
    Shortcode:[custom-facebook-feed id=106976563522 showpostsby=me showauthor=false include=sharedlinks,desc,date num=15 desclength=250 cachetime=10 cacheunit=minutes limit=30]
    URL: http://lolcore.org/custom-facebook-feed-provided-shortcode/

    3. custom facebook feed original shortcode - works
    Shortcode:[custom-facebook-feed id=106976563522 showpostsby=me showauthor=false exclude=author,text num=15 desclength=250 cachetime=10 cacheunit=minutes limit=30]
    URL: http://lolcore.org/custom-facebook-feed-original-shortcode/

    4. custom facebook feed with include date - doesn't work
    Shortcode:[custom-facebook-feed id=106976563522 showpostsby=me showauthor=false exclude=author,text num=15 desclength=250 cachetime=10 cacheunit=minutes limit=30 include=date]
    URL: http://lolcore.org/custom-facebook-feed-with-include-date/

  10. smashballoon
    Member
    Plugin Author

    Posted 11 months ago #

    Thanks, that's very helpful!

    Could you go to the plugin's 'Customize' page and click 'Save Changes' for me and let me know whether that fixes the issue?

    John

  11. v1rtual1st
    Member
    Posted 11 months ago #

    Tried that already and doesn't fix anything.
    Links provided are from clean wordpress install.

    Observation1
    I am looking at the //Date section within custom-facebook-feed.php
    Maybe there should be all parameters provided together with indluce=date so date can be displayed. datepos,datesize,dateweight and so on..
    - maybe some parameter is missing

    Observation2
    Shortcode that you provided contains include date but is not on first position after '=' and feed display but without date. When date is on first position after include then it breaks and feed doesnt display.

  12. smashballoon
    Member
    Plugin Author

    Posted 11 months ago #

    Shortcode #2 gives me the following when testing: http://s29.postimg.org/nkbpviekn/shortcode_test.png, so it looks like it's working correctly. Are you able to send me login info for your site via the form on our support page so that I can take a look and see what the issue is?

  13. v1rtual1st
    Member
    Posted 11 months ago #

    I have provided login details through support page.

  14. smashballoon
    Member
    Plugin Author

    Posted 11 months ago #

    Thanks!

    Clicking 'Save Changes' on the Customize page did the trick. The date is now being displayed: http://lolcore.org/custom-facebook-feed-provided-shortcode/.

    Let me know if you need anymore help,

    John

  15. v1rtual1st
    Member
    Posted 11 months ago #

    Thank you for all the help and sorry for trouble.

    For others:
    Clicking 'Save Changes' on the Customize page did the trick.

  16. smashballoon
    Member
    Plugin Author

    Posted 11 months ago #

    No problem at all, glad we were able to get it resolved for you :)

    John

Reply

You must log in to post.

About this Plugin

About this Topic