[Plugin: Yet Another Related Posts Plugin] bug when there is no related posts (3 posts)

  1. jgabor
    Posted 7 years ago #

    When I define what HTML should be outputted for "Default display if no results:" the HTML-code gets scrambled. I've put in the following:
    <div class="relatedposts norelatedposts"><p>No related posts</p></div>

    Which after I save it, turns into:
    <div class=\\\"relatedposts norelatedposts\\\"><p>No related posts</p></div>

    The amount of "\" increases after time... Anyone got a quickfix for it? Hopefully mitcho can get this one fixed pretty soon.

  2. @jgabor - Hmm... I thought I'd squashed this bug already... :/

    What if you use single quotes ' instead of double-quotes " ? Does that work? Try it out.

  3. jgabor
    Posted 7 years ago #

    @mitchoyoshitaka - Unfortunately, single quotes doesn't help (already tried that).

    Single quotes results in deletion of everything after the first quote, from:
    <div class="relatedposts norelatedposts"><p>Inga relaterade artiklar.</p></div>

    <div class="\

Topic Closed

This topic has been closed to new replies.

About this Topic