• Resolved FTL_Ian

    (@ftl_ian)


    Hello,

    Recently I had to restore my WordPress Network install from backup and further had to remove and reinstall Jetpack.

    Now the Related Posts feature is not showing on any posts, on any of my WordPress Network sites.

    Strangely, when I was creating a new post and hit “preview”, the related posts are showing there, but when it was published, they no longer show up.

    Looking at the code of the page displayed, you can see the script and the call for the posts is there, but they don’t show up. Any ideas?

    Thank you!
    Ian

    The page I need help with: [log in to see the link]

Viewing 4 replies - 1 through 4 (of 4 total)
  • Plugin Support Bruce (a11n)

    (@bruceallen)

    Happiness Engineer

    Hi @ftl_ian

    You will indeed always see Related Posts in the customizer, as a preview of how it could look on your site. The Related Posts displayed there are examples.

    On your posts, however, we try to pull real Related Posts. That does not quite work on your site, because when querying for Related Posts we get the original post back instead. (add /?relatedposts=1 to the end of your post URL.)

    Compare this with what we should normally get on a site using Related Posts:
    https://jetpack.com/blog/wordpress-navigation-menu/?relatedposts=1

    Do you use a caching plugin that may cache pages with a query parameter? If so, could you check your caching plugin options to avoid doing that, thus returning related posts for those queries?

    If you do not use such a plugin, I would recommend that you get in touch with your hosting provider and ask them if they have a caching layer in place on your site, such as Varnish, that could return cached pages.

    I hope this helps.

    Hi Bruce,

    I had the same problem (When I was logged in I could see the related posts otherwise NO!) The problem resolved by clearing the server’s cache!

    Thank you
    Nasrullah

    Plugin Support lastsplash (a11n)

    (@lastsplash)

    Hi @nasrimohseni

    Thanks for letting us know that you were able to fix this. I am going to mark this thread as “resolved” now.

    If you need assistance in the future, feel free to open a new thread.

    Thread Starter FTL_Ian

    (@ftl_ian)

    Sorry, but this has not been fixed. I have done some further digging, and noticed that this section is not present in the page source on the published pages, but it is present when I preview a post prior to publishing:

    <div class=”jp-relatedposts-items jp-relatedposts-items-visual jp-relatedposts-grid “>

    It cannot be caching as it’s not present on published posts whether I’m logged into the site or not.

    Why would it be there on a preview but not a published post?

    Thanks!

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Related Posts Show in Preview, but Not on Published Posts’ is closed to new replies.