<?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: Vise antallet at posts?</title>
		<link>http://wp-danmark.dk/forum/topic/vise-antallet-at-posts</link>
		<description>WordPress DK Forum Topic: Vise antallet at posts?</description>
		<language>da-DK</language>
		<pubDate>Tue, 20 Oct 2026 08:32:57 +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/vise-antallet-at-posts" rel="self" type="application/rss+xml" />

		<item>
			<title>stffn om "Vise antallet at posts?"</title>
			<link>http://wp-danmark.dk/forum/topic/vise-antallet-at-posts#post-18302</link>
			<pubDate>tirs, 03 aug 2010 08:38:47 +0000</pubDate>
			<dc:creator>stffn</dc:creator>
			<guid isPermaLink="false">18302@http://wp-danmark.dk/forum/</guid>
			<description>&#60;p&#62;Jeg bruger samme funktion på min fotoblog &#60;a href=&#34;http://photo.jint.dk&#34; rel=&#34;nofollow&#34;&#62;http://photo.jint.dk&#60;/a&#62;:&#60;/p&#62;
&#60;p&#62;&#60;code&#62;&#38;lt;?php&#60;/code&#62;&#60;br /&#62;
&#60;code&#62;	$number_of_posts = wp_count_posts( 'post' );&#60;/code&#62;&#60;br /&#62;
&#60;code&#62;	$number_of_comments = wp_count_comments( );&#60;/code&#62;&#60;br /&#62;
&#60;code&#62;	$number_of_artists=count(get_categories('parent=5&#38;amp;hide_empty=0'));&#60;/code&#62;&#60;br /&#62;
&#60;code&#62;	$number_of_venues=count(get_categories('parent=3&#38;amp;hide_empty=0'));&#60;/code&#62;&#60;br /&#62;
&#60;code&#62;?&#38;gt;&#60;/code&#62;&#60;/p&#62;
&#60;p&#62;I min kode indsætter jeg:&#60;br /&#62;
&#60;code&#62;&#38;lt;?php echo $number_of_posts-&#38;gt;publish ?&#38;gt;&#60;/code&#62;&#60;/p&#62;
&#60;p&#62;Jeg kan tælle (sub)kategorier via denne:&#60;br /&#62;
&#60;code&#62;&#38;lt;?php echo $number_of_artists ?&#38;gt;&#60;/code&#62;
&#60;/p&#62;</description>
		</item>
		<item>
			<title>Georg om "Vise antallet at posts?"</title>
			<link>http://wp-danmark.dk/forum/topic/vise-antallet-at-posts#post-18295</link>
			<pubDate>man, 02 aug 2010 22:08:41 +0000</pubDate>
			<dc:creator>Georg</dc:creator>
			<guid isPermaLink="false">18295@http://wp-danmark.dk/forum/</guid>
			<description>&#60;p&#62;Prøv fx &#60;a href=&#34;http://wordpress.org/extend/plugins/generalstats/&#34; rel=&#34;nofollow&#34;&#62;http://wordpress.org/extend/plugins/generalstats/&#60;/a&#62; eller flere på &#60;a href=&#34;http://wordpress.org/extend/plugins/tags/stats&#34; rel=&#34;nofollow&#34;&#62;http://wordpress.org/extend/plugins/tags/stats&#60;/a&#62;
&#60;/p&#62;

	&#60;p id=&#34;twitter_update_list&#34;&#62;
	&#60;script type=&#34;text/javascript&#34; src=&#34;http://twitter.com/javascripts/blogger.js&#34;&#62;&#60;/script&#62;
	&#60;script type=&#34;text/javascript&#34; src=&#34;http://twitter.com/statuses/user_timeline/@TeamBlogos.json?callback=twitterCallback2&#38;count=1&#34;&#62;&#60;/script&#62;&#60;/code&#62;&#60;/small&#62;&#60;/p&#62;&#60;br/&#62;</description>
		</item>
		<item>
			<title>martinwa om "Vise antallet at posts?"</title>
			<link>http://wp-danmark.dk/forum/topic/vise-antallet-at-posts#post-18294</link>
			<pubDate>man, 02 aug 2010 21:57:34 +0000</pubDate>
			<dc:creator>martinwa</dc:creator>
			<guid isPermaLink="false">18294@http://wp-danmark.dk/forum/</guid>
			<description>&#60;p&#62;Kunne godt tænke mig at få vist hvor mange posts der er og har tidligere brugt denne:&#60;br /&#62;
&#38;lt;?php if (function_exists('poststats')) { poststats(); } ?&#38;gt;&#60;/p&#62;
&#60;p&#62;men den virker ikke mere...&#60;br /&#62;
Hvordan kan jeg ellers optælle?
&#60;/p&#62;</description>
		</item>

	</channel>
</rss>
