<?xml version="1.0" encoding="UTF-8"?>
<!-- generator="bbPress/1.0.1" -->
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom">
	<channel>
		<title>WordPress DK Forum Topic: Titel max 50 tegn</title>
		<link>http://wp-danmark.dk/forum/topic/titel-max-50-tegn</link>
		<description>WordPress DK Forum Topic: Titel max 50 tegn</description>
		<language>da-DK</language>
		<pubDate>Wed, 05 Aug 2026 07:25:06 +0000</pubDate>
		<generator>http://bbpress.org/?v=1.0.1</generator>
		<textInput>
			<title><![CDATA[Søg]]></title>
			<description><![CDATA[Search all topics from these forums.]]></description>
			<name>q</name>
			<link>http://wp-danmark.dk/forum/search.php</link>
		</textInput>
		<atom:link href="http://wp-danmark.dk/forum/rss/topic/titel-max-50-tegn" rel="self" type="application/rss+xml" />

		<item>
			<title>LeadMedia om "Titel max 50 tegn"</title>
			<link>http://wp-danmark.dk/forum/topic/titel-max-50-tegn#post-20846</link>
			<pubDate>fre, 12 nov 2010 09:55:24 +0000</pubDate>
			<dc:creator>LeadMedia</dc:creator>
			<guid isPermaLink="false">20846@http://wp-danmark.dk/forum/</guid>
			<description>&#60;p&#62;Det var lige præcis substr jeg skulle bruge, resultatet blev:&#60;/p&#62;
&#60;p&#62;&#60;code&#62;&#60;br /&#62;
&#38;lt;?php echo substr(get_the_title(), 0, 50); ?&#38;gt;&#60;br /&#62;
&#60;/code&#62;&#60;/p&#62;
&#60;p&#62;Mange tak for hjælpen :)
&#60;/p&#62;</description>
		</item>
		<item>
			<title>jacobask om "Titel max 50 tegn"</title>
			<link>http://wp-danmark.dk/forum/topic/titel-max-50-tegn#post-20845</link>
			<pubDate>fre, 12 nov 2010 09:41:55 +0000</pubDate>
			<dc:creator>jacobask</dc:creator>
			<guid isPermaLink="false">20845@http://wp-danmark.dk/forum/</guid>
			<description>&#60;p&#62;Du må kunne bruge &#60;a href=&#34;http://php.net/manual/en/function.substr.php&#34;&#62;substr&#60;/a&#62;, og udskrive titlen noget i stil med:&#60;br /&#62;
´&#38;lt;php substr(the_title(), 0, 50); ?&#38;gt;`&#60;/p&#62;
&#60;p&#62;Bare et spark i den måske rigtige retning...&#60;/p&#62;
&#60;p&#62;/ask
&#60;/p&#62;</description>
		</item>
		<item>
			<title>LeadMedia om "Titel max 50 tegn"</title>
			<link>http://wp-danmark.dk/forum/topic/titel-max-50-tegn#post-20843</link>
			<pubDate>fre, 12 nov 2010 09:10:23 +0000</pubDate>
			<dc:creator>LeadMedia</dc:creator>
			<guid isPermaLink="false">20843@http://wp-danmark.dk/forum/</guid>
			<description>&#60;p&#62;Hej,&#60;/p&#62;
&#60;p&#62;Jeg benytter nedstående script til at vise den seneste 5 indlæg i min sidebar, jeg kunne god godt tænke mig at kunne sætte en begrænsning på hvor lang titlen må være, så den f.eks. ikke overskrider 50 tegn, og hvis den gør så bliver resten cuttet væk og efterlades af ...&#60;/p&#62;
&#60;p&#62;Hvordan kan jeg lave det?&#60;/p&#62;
&#60;p&#62;&#60;code&#62;&#60;br /&#62;
&#38;lt;?php $temp_query = $wp_query; ?&#38;gt;&#60;br /&#62;
&#38;lt;?php query_posts('showposts=5'); ?&#38;gt;&#60;br /&#62;
&#38;lt;?php while (have_posts()) : the_post(); ?&#38;gt;&#60;/p&#62;
&#60;li&#62;&#60;a&#62;&#34; alt=&#34;&#38;lt;?php the_title(); ?&#38;gt;&#34;&#38;gt;&#38;lt;?php the_title(); ?&#38;gt;&#60;/a&#62;&#60;/li&#62;
&#60;p&#62;&#38;lt;?php endwhile; ?&#38;gt;&#60;br /&#62;
&#38;lt;?php $wp_query = $temp_query; ?&#38;gt;&#60;br /&#62;
&#60;/code&#62;
&#60;/p&#62;</description>
		</item>

	</channel>
</rss>
