Viewing 15 replies - 1 through 15 (of 21 total)
  • Plugin Author Jeremy Herve

    (@jeherve)

    Jetpack Mechanic ??

    Related Posts don’t seem to be enabled on freekeene.com at the moment. Could you go to Jetpack > Settings in your dashboard, and make sure the Related Posts module is enabled?

    However, Related Posts are enabled on keenevention.info. Do you use a caching plugin on that site? If so, could you make sure it doesn’t cache URLs including a query parameter, like ?relatedposts=1?

    Let me know how it goes.

    Thread Starter FTL_Ian

    (@ftl_ian)

    Sorry – I turned it off on Free Keene as when I was sharing from the site, the summary of the shared story just said “Related”

    Regarding your question, we don’t cache when there are query parameters.

    Thank you!

    Plugin Author Jeremy Herve

    (@jeherve)

    Jetpack Mechanic ??

    Could you try to enable the JSON API module under Jetpack > Settings, and let me know if it helps?

    Thanks!

    Thread Starter FTL_Ian

    (@ftl_ian)

    Enabled it on Keenevention.info – nothing

    Thread Starter FTL_Ian

    (@ftl_ian)

    I’m just gonna disable it for now. Thanks for the help! Still interested in further suggestions.

    Plugin Author Jeremy Herve

    (@jeherve)

    Jetpack Mechanic ??

    Could you tell me more about your caching system? Do you use a plugin, an external service, or do you reply on caching at the server level only?

    Thread Starter FTL_Ian

    (@ftl_ian)

    We’re only caching via nginx

    Thanks!

    Plugin Author Jeremy Herve

    (@jeherve)

    Jetpack Mechanic ??

    Could you try disabling caching for a few minutes, and let me know if it helps?

    Thread Starter FTL_Ian

    (@ftl_ian)

    No dice. I set the related posts on for a different site (same server and WP network install), https://nhliberty.info.

    Also tried turning on the JSON API per your earlier suggesting along with turning the caching off. Nothing changed.

    Plugin Author Jeremy Herve

    (@jeherve)

    Jetpack Mechanic ??

    I’m afraid the problem is still the same for that site. The posts are in our index, and I get related posts for all the posts I’ve tested on all 3 sites. However we can’t get these Related Posts on the site.

    Jetpack’s Related Posts module generates an Ajax response with a list of Related Posts. You can then access that JSON response by adding ?relatedposts=1 to a post URL. Here is an example:
    https://jeremy.hu/jetpack-missing-images-related-posts/?relatedposts=1

    On your sites, however, that response always returns a cached version of the post instead of the JSON response:
    https://nh-liberty.info/2015/03/06/2015-annual-convention-recap/?relatedposts=1

    If you’ve disabled caching and that didn’t help, could you try flushing the existing cache as well, and let me know how it goes?

    We’re still seeing the issue with the cache off and empty.

    Thread Starter FTL_Ian

    (@ftl_ian)

    Jeremy,

    Error is my admin on the sites and is a WP contributor, if I recall correctly.

    He also said this to me about it today:

    “That page with relatedposts=1 is neither in cache nor being cached. It’s just being passed right through to PHP.”

    Plugin Author Jeremy Herve

    (@jeherve)

    Jetpack Mechanic ??

    Thanks for the extra details. I’ve asked one of my colleagues to take another look. Something clearly conflicts with the Related Posts output, but I’m not sure what.

    I’ll get back to you as soon as I have some news.

    Thread Starter FTL_Ian

    (@ftl_ian)

    Ok, thanks!

    Plugin Author Jeremy Herve

    (@jeherve)

    Jetpack Mechanic ??

    Unfortunately, we weren’t able to make much progress. Since we’ve ruled out caching, I’d suggest checking the redirect rules in place on your site.

    I tried using the post shortlink instead of the full permalink, and the Related Posts call seems to work there:
    https://nh-liberty.info/?p=501&relatedposts=1

    Do you have any plugins in place that may affect this? It might be worth trying to deactivate each plugin, one at a time, just to make sure this isn’t caused by a plugin conflict.

    Let me know how it goes.

Viewing 15 replies - 1 through 15 (of 21 total)
  • The topic ‘Related Posts not showing up’ is closed to new replies.