Forums

[resolved] Llinks in excerpts replaced by HTML code (2 posts)

  1. markus_vaeth
    Member
    Posted 3 years ago #

    Hi,

    I'm using the BranfordMagazine theme. So far it worked fine, but my latest posts contain now the HTML code of the links mentioned in the posts. Looks like this (postings in Germn, sorry :-) ):

    ----- snip ------

    Das Coaching Magazin 03/2008 von Christopher Rauen ist erschienen und kann hier heruntergeladen werden.
    Besonders interessant sind aus meiner Sicht die Artikel zum Thema “Achtsamkeit im Coaching” (S. 18ff) und zum professionellen Aufbau eines Coach-Pools (S. 23ff, besonders für Personalentwickler lesenswert).
    szu=’http%3A%2F%2Fmensch-chance.de%2Fblog%2Fdas-neue-coaching-magazin-ist-da’; szt=’Das+neue+Coaching-Magazin+ist+da’;

    ------ snap -------

    I googled for a solution, but couldn't find anything; neither on this forum.

    When you click on an excerpt to open the full post, it's correctly displayed in the full post. And, as I said, the problem occurred during my latest three posts, not before. You can watch the beahiour live at http://mensch-chance.de

    Does anyone know something about this? Drives me crazy. And the blog's serious part of my business, so it should look professional.

    Thanks in advance for you help,

  2. markus_vaeth
    Member
    Posted 3 years ago #

    Hi,

    I found out that it has something to do with WordPress' function the_excerpt().

    In the file wp_includes/formatting.php there's a line:
    '$excerpt_length = 55;'
    This determines the amount of words in the excerpt. If you now write a post with less than 55 words, WordPress apparently adds the urls of the links mentioned in the post (which is, IMHO, a bug!).

    Anyway, I set this variable to 35 (my shortest post being longer than this) and Voila! Problem solved.

Topic Closed

This topic has been closed to new replies.

About this Topic