This topic has 6 replies, 3 voices, and was last updated 11 years by nicholaus1221.

  • Author
  • #1454
     mcgreggor
    Participant

    The widget shows the latest posts just after I add it in Appearance > Widgets but after that it just seems to keep on displaying the same 5 posts after new posts have been created.

    Also, when a post is deleted, the widgets still shows it, resulting in a 404.

    #1455
     SQadmin
    Keymaster

    Hi,
    We’ll get back to you with a quick fix. This happens because of a cache we added not to query all the posts every time the page loads. To fix it quickly just re-save the widget
    Thanks

    Hi there!!! Help others from the community and mark any reply as solution if it solved your question. Mark as a solution
    #1456
     mcgreggor
    Participant

    Thanks for the quick reply. However re-saving the widget doesn’t help on the the widget from this post: https://archived.seventhqueen.com/forums/topic/recent-posts-widget.

    Isn’t there something I can add or delete from the widget code in sweetdate-child/functions.php to disable the cache? thanks

    #1522
     SQadmin
    Keymaster

    Hi,
    Please replace the content of the file located in the main theme: sweetdate/framework/widgets/widget_recent_posts.php with the one from this file:
    https://archived.seventhqueen.com/files/widget_recent_posts.txt

    Thanks

    Hi there!!! Help others from the community and mark any reply as solution if it solved your question. Mark as a solution
    #1665
     mcgreggor
    Participant

    Works great. thanks

    #4948
     nicholaus1221
    Participant

    Hi,

    I’m having the same issue and I updated the widget_recent_posts.php file with the one you provided, but it’s still only showing one post even though I have 2…

    Any ideas?

    Nicholaus

    #4999
     nicholaus1221
    Participant

    Nevermind, my bad, I just had to clear cache and it updated 🙂

    Nicholaus

Viewing 7 posts - 1 through 7 (of 7 total)

The forum ‘Sweetdate – WordPress’ is closed to new topics and replies.

Log in with your credentials

Forgot your details?