• Hi,
    I’ve been trying to insert a link in the html section that displays after the recent posts sections. But when I click on the link (inserted as: <a href="https://en.bigalpes.com/news">) it gets transformed into: https://en.bigalpes.com/%5C%22http:/en.bigalpes.com/news%5C%22 and doesn’t work….

    I’ve checked and double checked how I’m inserting the link, I’ve also tried using a local link (just “news”) but no luck… Can anybody help me solve this problem?

    Thanks!

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

Viewing 1 replies (of 1 total)
  • Hi,

    unfurtunately the widget saves the new fields [before] and [after] using the function wp_filter_post_kses making the use of double quotes impossible.

    Waiting for the official fix, if you are familiar with PHP, you can edit the Update method of the Recent_Posts_Widget_Extended Class in wp-content\plugins\recent-posts-widget-extended\classes\widget.php (line 126 and 127) to skip the use of the filter:

    change

    $instance['before'] = wp_filter_post_kses( $new_instance['before'] );
    $instance['after'] = wp_filter_post_kses($new_instance['after'] );

    to

    $instance['before'] = $new_instance['before'] ;
    $instance['after']  = $new_instance['after'] ;

    For security reason you can also filter the fields with a proper different filter function.

    Let me know if it works for you….

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