Limit characters in codefusion atom feed
-
Hi everyone, I’m using this code to display a wordpress atom in a codefusion website, but i need to limit the characters displayed in content, because is displaying all content
anyone know how to limit this content?
Thanks for you attention
<cftry>
<cfhttp url="http://grupomopi.com.br/aconteceu-barra/feed/atom/" method="GET" resolveurl="No" >
</cfhttp>
<cfset blog_xml=XMLParse(cfhttp.FileContent)>
<cfoutput>
<cfset displayChar="10">
<cfloop index="x" from="1" to="10">- <span class="titulo-noticia">#blog_xml.feed.entry[x].title.xmlText#</span>
#blog_xml.feed.entry[x].content.xmlText#</cfloop>
</cfoutput>
<cfcatch>
</cfcatch>
</cftry>The blog I need help with is: (visible only to logged in users)
- <span class="titulo-noticia">#blog_xml.feed.entry[x].title.xmlText#</span>
-
Exactly what are yoy trying to achieve? And exactly which blog are you referring to?
Wordpress.com vs WordPress.org: The differences > http://support.wordpress.com/com-vs-org/
code > http://en.support.wordpress.com/code/
posting source code > http://en.support.wordpress.com/code/posting-source-code/ -
I’m trying to limit this
#blog_xml.feed.entry[x].content.xmlText#to 50 characters or more, because is displaing the full content of the post
-
To limit what displays in the RSS feed for your posts go to this page > Settings > Reading and look for:
For each article in a feed, show
__ Full text
__Summary -
I see… but still displaying more text than I need, it is possible to decrease the characters of this summary?
-
-
#blog_xml.feed.entry[x].sumary.xmlText#—> Change the code to thisI limit heigh of the span element with css … many thanks for the help
-
- The topic ‘Limit characters in codefusion atom feed’ is closed to new replies.