Posts Truncated after Non-Breaking Spaces
Jan 27, 2010
You may run across a feed that gets truncated when imported into WordPress. Typically, the cutoff occurs after a non-breaking space ( ) in the feed. Sometimes this issue also shows up as an AutoBlogged post that contains the feed content but does not contain the attribution link to the original article.
Problem
In our research of this issue, we have determined that the entire post is intact when we pass it on to the WordPress API. The cutoff occurs during WordPress’ handling of the post. Although this is technically a WordPress issue, we do know that the problem is due to non-breaking spaces so we can just trim those off before we pass the post to WordPress. We will address this issue in our next AutoBlogged update.
In the meantime, however, we have identified a workaround that does fix this issue.
Solution
Until our next AutoBlogged update, you can use the following workaround to deal with this issue:
First, go into the settings for your feed and scroll to the Search and Replace section at the bottom of the page. In the Search for box, enter and in the Replace with box type a single space as shown below:
After you set up this search and replace, you need to modify your post template, replacing all instances of %excerpt% or %content% with %description%.
For example, your new post template may look like this:
<p>%description%</p>
%if:video%<p>%video%</p>%endif:video% %if:thumbnail%<p>%thumbnail%</p>%endif:thumbnail%
[Read more here|Read the original here|Read more from the original source] <a target="_blank" href="%link%" title="%title%">%title%</a>
After making these changes, you should no longer have issues with truncated posts.









Comment Form