• Resolved agadakou

    (@agadakou)


    Hi there,

    I’m trying to use the “HTML or text after the recent posts” field and I come across this problem: all the ” (quote marks) are being translated into \” in my site. Even if I try to strip the quote marks, as soon as I SAVE the widget, they show up in the HTML or text after the recent posts field. This means I cannot use a class or an a href in this field, as all the quote marks appear as \” in the code!
    Any thoughts?
    Thank you so much

    my site: https://www.noima.eu/wordpress/ (the link under the 3rd column)

    https://www.ads-software.com/plugins/recent-posts-widget-extended/

Viewing 5 replies - 1 through 5 (of 5 total)
  • joeltheledge

    (@joeltheledge)

    Hi agadakou,

    I realize it’s been a month but as there are no replies I thought I would anyway.

    I’ve just spent the best part of an hour with this same problem. It seems the striplashes within the function are not working how they were intended.

    Anyways, I couldn’t solve the problem correctly (maybe someone else could try and update this?)

    But I could solve my problem with a short term fix, here:

    —————————————————————————-

    go to your: plugins => recent-posts-widget-extended => includes => functions.php

    On about line 181 just after the while loop ends you’ll see the ul closing tag.

    You can pop your link in there as html. for example:

    $html .= '</ul><a href="/your-page">LINK TO ANOTHER PAGE</a>';

    —————————————————————————-

    It works for me, hope this might help others.

    If anyone knows the correct way to do within php please update this

    Thanks

    Thread Starter agadakou

    (@agadakou)

    Many many thanx!

    It couldn’t get more hard coded than that, but it works just fine for me, so thanx again for this way round ??

    guvenck

    (@guvenck)

    I reported this, but couldn’t get a reply, so I took the matter into my own hands and solved the problem like this:

    Open the functions.php file in your /wp-content/plugins/recent-posts-widget-extended/includes/ folder.

    Go to line 194 (or so) and replace following line

    return $args['before'] . apply_filters( 'rpwe_markup', $html ) . $args['after'];

    with this:

    return stripslashes($args['before']) . apply_filters( 'rpwe_markup', $html ) . stripslashes($args['after']);

    Hope this will be helpful.

    Plugin Author Ga Satrya

    (@satrya)

    Hi There,
    I fix it for next version ??

    Thread Starter agadakou

    (@agadakou)

    guvenck, thanx for your suggestion…

    Satrya, many thanks, I like your plugin!

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘HTML or text after the recent posts problem’ is closed to new replies.