Viewing 7 posts - 1 through 7 (of 7 total)
  • Author
  • #27434

    not much more to say about it. The links do appear nicely in the article but simply don’t show in the widget. Follow this link and go to footer area. Read the newest entry in col 3 under “News”. You will see that there’s a word missing. Now klick on the entry to go to the full article and see the difference.

    What to do?

    Regards crazygirl


    Hi crazygirl,

    The preview text in the widgets is plain text for use in the widget/excerpts. So any links or images in the post are purposely removed. This is so that the content can be correctly rendered without the user accidentally breaking it with the formatting in the preview/excerpt text.




    Hello Devin,

    nice to know how it works. I realised myself, that links are removed in the widgets. But by using a normal link with the anchor tag, the tag is being removed while the text between opening and closing tag is kept. In my case everything is removed. RB internal links plugin is using a shortcode that goes like [intlink id=”464″ type=”post”]link_to_internal_post[/intlink] and other internal link plugin work similar.

    Handling internal links so that you don’t need to revise them every time you change the permalink structure is crucial for SEO.

    It shouldn’t be too difficult to filter shortcodes the same way as anchor tags or am I mistaken?

    Regards crazygirl


    You can try adding this to your functions.php to let excerpts handle shortcodes (this is a WordPress core thing):

    add_filter('the_excerpt', 'do_shortcode');


    Unfortunately this didn’t help.



    Hi Devin,

    ok, by reading your post a second time, I realised that my problem got nothing to do with avisio but with some core functions. I searched the internet and found a solution (Purchase code hidden if logged out) -wordpress-post-excerpts/” class=”bbcode_url”>here:

    The code one has to add to the functions.php goes like this:

    remove_filter(‘get_the_excerpt’, ‘wp_trim_excerpt’);
    add_filter(‘get_the_excerpt’, ‘custom_trim_excerpt’);

    function custom_trim_excerpt($text = ”)
    $raw_excerpt = $text;
    if ( ” == $text ) {
    $text = get_the_content(”);

    //$text = strip_shortcodes( $text );

    $text = apply_filters(‘the_content’, $text);
    $text = str_replace(‘]]>’, ‘]]>’, $text);
    $excerpt_length = apply_filters(‘excerpt_length’, 55);
    $excerpt_more = apply_filters(‘excerpt_more’, ‘ ‘ . ‘[…]’);
    $text = wp_trim_words( $text, $excerpt_length, $excerpt_more );
    return apply_filters(‘wp_trim_excerpt’, $text, $raw_excerpt);
    add_filter(‘the_excerpt’, ‘do_shortcode’);

    It works fine but even if it works it might no be good to use it. My knowledge about programming wordpress is very little. So do you think this is an appropriate solution?



    No, that is perfectly fine to use.

Viewing 7 posts - 1 through 7 (of 7 total)

The topic ‘Plugin 'RB internal links' doesn't work with Avisio sidebar news widget’ is closed to new replies.