<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>WP-Simple &#187; trackback</title>
	<atom:link href="http://www.wp-simple.ru/tag/trackback/feed" rel="self" type="application/rss+xml" />
	<link>http://www.wp-simple.ru</link>
	<description>Подсказки, советы, тюнинг, хаки, новости, плагины и темы WordPress</description>
	<lastBuildDate>Thu, 04 Feb 2010 07:19:08 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.8.6</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<xhtml:meta xmlns:xhtml="http://www.w3.org/1999/xhtml" name="robots" content="noindex" />
		<item>
		<title>Отображаем число трекбеков</title>
		<link>http://www.wp-simple.ru/number-of-trackbacks.html</link>
		<comments>http://www.wp-simple.ru/number-of-trackbacks.html#comments</comments>
		<pubDate>Thu, 17 Dec 2009 04:31:27 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Новые функции]]></category>
		<category><![CDATA[Подсказки и полезные советы]]></category>
		<category><![CDATA[functions.php]]></category>
		<category><![CDATA[trackback]]></category>

		<guid isPermaLink="false">http://www.wp-simple.ru/?p=44</guid>
		<description><![CDATA[Открываем файл functions.php, находящийся в каталоге вашей темы.
Добавил туда функцию, код которой написан ниже.

function tb_count() {
    global $wpdb;
	$count = "SELECT COUNT(*) FROM $wpdb-&#62;comments WHERE comment_type = 'pingback' OR comment_type = 'trackback'";
    echo $wpdb-&#62;get_var($count);
}

Сохраняем файл functions.php и теперь в любом месте вы можете вызвать функцию.
&#60;?php tb_count(); ?&#62;

Gravatar комментаторовДоступ к данным [...]]]></description>
			<content:encoded><![CDATA[<p>Открываем файл functions.php, находящийся в каталоге вашей темы.<br />
Добавил туда функцию, код которой написан ниже.</p>
<blockquote>
<pre>function tb_count() {
    global $wpdb;
	$count = "SELECT COUNT(*) FROM $wpdb-&gt;comments WHERE comment_type = 'pingback' OR comment_type = 'trackback'";
    echo $wpdb-&gt;get_var($count);
}</pre>
</blockquote>
<p>Сохраняем файл functions.php и теперь в любом месте вы можете вызвать функцию.</p>
<blockquote><pre>&lt;?php tb_count(); ?&gt;</pre>
</blockquote>
<div id="crp_related"><ul><li><a href="http://www.wp-simple.ru/recent-comments-with-gravatar.html" rel="bookmark">Gravatar комментаторов</a></li><li><a href="http://www.wp-simple.ru/access-post-data-outside-the-loop.html" rel="bookmark">Доступ к данным поста вне цикла</a></li><li><a href="http://www.wp-simple.ru/embed-adsense-to-post.html" rel="bookmark">Вставка Adsense</a></li><li><a href="http://www.wp-simple.ru/function-words-count.html" rel="bookmark">Подсчет слов в статье</a></li><li><a href="http://www.wp-simple.ru/post-by-excerpts.html" rel="bookmark">Вывод укороченной новости</a></li></ul></div>]]></content:encoded>
			<wfw:commentRss>http://www.wp-simple.ru/number-of-trackbacks.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
