[resolved] the_excerpt not working as expected (content running over) (4 posts)

  1. sdoscher
    Posted 3 years ago #

    my site is:

    I have 3 featured page columns at the bottom of the homepage. They are not conforming to the "55" word limit that the excerpt is suppose to implement. Below is my index page and below THAT is my functions page....ANY help would be greatly appreciated.

    [ 1,140 lines of code moderated. For that many lines of code please use pastebin.com instead. ]

  2. sdoscher
    Posted 3 years ago #

    Here is the index page code in pastebin: http://pastebin.com/embed_js.php?i=hLj3tFVP

    Here is the functions page code in pastebin: http://pastebin.com/embed_js.php?i=73sNTeE0

    Any help is appreciated. Scott

  3. Michael
    Forum Moderator
    Posted 3 years ago #

    the offending page excerpt has a lot of 'non-breaking-space' characters in the content; because two words joined by a 'non-breaking-space' are considered to be one word (although it looks like they have a space between them), they do (obviously) not get counted individually by the excerpt code.

    <p>Ology Consulting Group, LLC offers 15 years of&nbsp;inovative technology&nbsp;solutions to small and&nbsp;large businesses alike.&nbsp;&nbsp;Our industry&nbsp;relationships&nbsp;range from&nbsp;“start ups” to Fortune 50 enterprises.&nbsp;&nbsp;Ology Consulting Group&nbsp;has developed the&nbsp;art and&nbsp;science of combining the strategies and power of large agencies&nbsp;with boutique style&nbsp;customer service.&nbsp; Our style is that we listen first and then lead.&nbsp; Service and collaberation is where we excel <a href="">Read More</a></p>

    possibly edit your page content (using the html setting of the editor) and see if you can eliminate the &nbsp; characters - or rewrite the content.

  4. sdoscher
    Posted 3 years ago #

    Thank you alchymyth!!!! That did the trick. I did not see those "&nbsp's"

    On a side note...in learning WP/PHP, I have found these forum's to be more valuable then Gold...dare I say Platinum....now, to the point...I have noticed that YOU contribute more to these forums than probably any other person and always with solid solutions. I can't tell you how helpful you have been to me...this is the 2nd time you have helped me. In a matter of minutes you helped me with things that I have spend hours (literally many hours) trying to fix myself. I can see from reading other posts that you have helped dozen's of others as well...and for that..I say a huge thank you...I really hope you know how appreciative I am...i'm sure others are as well.


Topic Closed

This topic has been closed to new replies.

About this Topic