• Resolved dpcdpc11

    (@dpcdpc11)


    Hi…

    I have a photo blog and most of my posts are just using a Featured image and that’s it.
    Since the posts don’t have any content, the plugins doesn’t display any related posts even though it could find a bunch of them using the title, the tags and the categories.
    Can you do something to change this behavior or should I look for another plugin?

    Thanks in advance and happy Easter to all!

    https://www.ads-software.com/plugins/wordpress-23-related-posts-plugin/

Viewing 8 replies - 1 through 8 (of 8 total)
  • Hey dpcdpc11,

    thanks for reaching out – I’ll gladly help!
    A quick question – related posts don’t show up after you publish your post?
    If that’s the case, just go to your plugin settings -> advanced settings -> other settings and tick the box next to “Auto Insert Related Posts (or add <?php wp_related_posts()?>to your single post template)”. Then go to your blog and refresh the page. Related posts should show up and you can manually re-edit them if you wish – just click “Edit Related Posts” button.
    Please let me know how it goes!

    Take care and have a nice day,

    Petra

    Thread Starter dpcdpc11

    (@dpcdpc11)

    I can see the related posts only if I add some text to the content of the post.
    That’s the problem, that the plugin doesn’t work if the post has an empty content.

    Hey,

    I have tested this on my side and the related posts should show up even though there is no text in a post. Would you be so kind and give me the link to your blog so that I can have a closer look?
    But just to be on the same page – the related content that shows up below your editor when you write a post is not the same as related posts that are added automatically – do you have the option “Auto Insert Related Posts (or add <?php wp_related_posts()?>to your single post template)” ticked in your settings?

    Best,
    Petra

    Thread Starter dpcdpc11

    (@dpcdpc11)

    Hey Petra… I have the “Auto Insert Related Posts (or add <?php wp_related_posts()?>to your single post template)” ticked in settings.

    And here are 3 links to the website:
    – post with content where the plugin works: https://www.oradeainimagini.ro/de-vizitat/monumente-culturale/de-vizitat-palatul-levay-de-la-clasicism-spre-eclectism/
    – post with only an image in the content and a featured image where the plugin works: https://www.oradeainimagini.ro/galerie-foto/palatul-vulturul-negru-galerie-foto/simbolul-orasului-palatul-vulturul-negru/
    – post without content, just a featured image where the plugin doesn’t work: https://www.oradeainimagini.ro/galerie-foto/primaria-oradea/primaria-orasului/

    Hope this helps you understand better what I mean.

    Hey,

    thanks for this detailed explanation, truly appreciated!
    Now I see what you mean – I was too focused on “no text” instead of “no content what-so-ever”, my fault. The thing is our plugin works on blog posts, and if there is no content in the body (not even a picture) it is not really a post. And just a heads up, no content can get you penalized by Google.
    So to make it work, put that image you have as featured in the content. The result should be the same but now our plugin will detect it and related posts will show up.

    Take care,
    Petra

    Thread Starter dpcdpc11

    (@dpcdpc11)

    I can’t do that cause the theme is coded to use the featured image the way I want to.
    And I don’t care about google indexing the posts with just a featured image… there’s plenty of textual content in the website to be indexed.
    There has to be a way of forcing your plugin to work even if there’s no content in the post.
    I took a look at the coding of the plugin trying to find a conditional related to the empty post but couldn’t find any.
    And I don’t think it’s complicated for the plugin to ignore a blank post and still trigger the related posts based on category and tags.

    There is a workaround but again I strongly advise against doing this: switch to text mode and put <div></div> in the content. This way, there actually won’t be any content and related posts will work.

    Best,
    Petra

    Thread Starter dpcdpc11

    (@dpcdpc11)

    Thanks for the tip! It seems this is the only workaround: placing an <Enter> on each empty post.

Viewing 8 replies - 1 through 8 (of 8 total)
  • The topic ‘Related posts not shown on posts without content…’ is closed to new replies.