• Resolved cabel983

    (@cabel983)


    I set there to be 4 related posts shown in-text.

    For some reason, it shows double. It will show 4 posts and the next line the same 4 posts with the same “Related Posts” heading. Tried adjusting settings but nothing working. Weird because I downloaded this for another site and it worked perfectly.

    How do I stop it from doubling?

Viewing 14 replies - 1 through 14 (of 14 total)
  • Plugin Author Ajay

    (@ajay)

    URL?

    Thread Starter cabel983

    (@cabel983)

    Plugin Author Ajay

    (@ajay)

    What happens if you disable the “Automatically Add to” in the settings page.

    This can happen if you have the “manual install” alongside automatically or if for some reason the_content filter is twice in the theme

    Thread Starter cabel983

    (@cabel983)

    So how do I fix it?

    If I disable “Automatically add to” then it stops showing altogether. It says to add to template theme. Not sure what these means specifically or if it will still show after the designated paragraph, even though it’s unchecked in the settings? I tried adding as an HTML block in my template for blog posts but it didn’t work.

    Plugin Author Ajay

    (@ajay)

    thanks, do you have the code for your theme that generates the content, it looks like the_content filter is being applied twice for some reason.

    An alternative is to keep that disabled as above and then using echo_crp() in your theme where you want it displayed.

    Thread Starter cabel983

    (@cabel983)

    Not sure on the first one or how to tell.

    How can I use the “echo_crp()” code if I want it display, say, after the 10th paragraph in every blog post? How would I specify the # paragraph it should appear after with that code? Thank you 🙂

    Plugin Author Ajay

    (@ajay)

    Unfortunately, you can’t.

    What theme are you using?

    Thread Starter cabel983

    (@cabel983)

    I’m using Newspaper theme. I’m guessing it’s the theme that’s causing the issue?

    Plugin Author Ajay

    (@ajay)

    That’s what I need to check as it seems to be the case that there is the_content being called twice which is causing this to appear twice.

    The only one I can see is one on themeforest. Is this is a free theme or premium. Can you check with the author around what goes into the single.php to confirm why the_content is called more than once.

    I’m using the same theme and experiencing the same issue. Moreover the php code is not working when I try to use it in the pagebuilder in a raw html block/

    Plugin Author Ajay

    (@ajay)

    if you’re using a page builder, does it allow shortcodes? If so you can use the shortcode.

    https://webberzone.com/support/knowledgebase/contextual-related-posts-shortcode/

    Not working either. I mean I can make other shortcodes work but not CRP.

    @cabel983 how did you manage either to use the shortcode or to remove the duplicate ?

    Plugin Author Ajay

    (@ajay)

    @bduperrin Unfortunately, I don’t know a solution to this as I also have no way to test the theme if it is a paid one.

    Are you trying the short code with just [crp]

Viewing 14 replies - 1 through 14 (of 14 total)

The topic ‘Showing Double?’ is closed to new replies.