<?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>Рецепты WordPress &#187; Как сделать?</title>
	<atom:link href="http://www.wprecipe.ru/heading/howto/feed" rel="self" type="application/rss+xml" />
	<link>http://www.wprecipe.ru</link>
	<description>Полезные рецепты, хаки и руководства по CMS WordPress. Шаблоны и темы для WordPress</description>
	<lastBuildDate>Thu, 14 Jan 2010 07:39:32 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.8.4</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>Скрываем от Google часть текста на вашем блоге</title>
		<link>http://www.wprecipe.ru/skryvaem-ot-google-chast-teksta-na-vashem-bloge.htm</link>
		<comments>http://www.wprecipe.ru/skryvaem-ot-google-chast-teksta-na-vashem-bloge.htm#comments</comments>
		<pubDate>Thu, 14 Jan 2010 07:39:32 +0000</pubDate>
		<dc:creator>wprecipe</dc:creator>
				<category><![CDATA[Как сделать?]]></category>
		<category><![CDATA[SEO]]></category>

		<guid isPermaLink="false">http://www.wprecipe.ru/?p=640</guid>
		<description><![CDATA[Я рассказывал, как скрыть от поисковых систем  пост или страницу. Но не показывал вам, как можно скрыть от поискового робота Google часть текста. Читайте, как это делается.

Скрыть от Google часть текста, задача не тривиальная, но в решении очень простая, робот Google поддерживает html комментарии в коде и чтобы скрыть часть текста, вам просто нудно эти [...]]]></description>
		<wfw:commentRss>http://www.wprecipe.ru/skryvaem-ot-google-chast-teksta-na-vashem-bloge.htm/feed</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>Предотвращаем кеширование стилей WordPress</title>
		<link>http://www.wprecipe.ru/predotvrashhaem-keshirovanie-stilej-wordpress.htm</link>
		<comments>http://www.wprecipe.ru/predotvrashhaem-keshirovanie-stilej-wordpress.htm#comments</comments>
		<pubDate>Wed, 13 Jan 2010 13:37:24 +0000</pubDate>
		<dc:creator>wprecipe</dc:creator>
				<category><![CDATA[Как сделать?]]></category>

		<guid isPermaLink="false">http://www.wprecipe.ru/?p=636</guid>
		<description><![CDATA[Файлы с описанием стилей, как файлы JS и картинки, кешируются браузером по умолчанию. Это правильно, так как сокращает время загрузки страницы и количество передаваемой информации. Но иногда это имеет и обратную, не хорошую сторону, когда к примеру вы обновляете файлы стилей, но ваши пользователи изменения не заметят до тех пор, пока не обновится их кеш.

Итак, [...]]]></description>
		<wfw:commentRss>http://www.wprecipe.ru/predotvrashhaem-keshirovanie-stilej-wordpress.htm/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Создаем невидимые произвольные поля</title>
		<link>http://www.wprecipe.ru/sozdaem-nevidimye-proizvolnye-polya.htm</link>
		<comments>http://www.wprecipe.ru/sozdaem-nevidimye-proizvolnye-polya.htm#comments</comments>
		<pubDate>Wed, 13 Jan 2010 06:36:11 +0000</pubDate>
		<dc:creator>wprecipe</dc:creator>
				<category><![CDATA[Как сделать?]]></category>
		<category><![CDATA[Произвольные поля]]></category>

		<guid isPermaLink="false">http://www.wprecipe.ru/?p=634</guid>
		<description><![CDATA[Обычно, произвольные поля видны и редактируемы когда вы модифицируете пост. Но иногда необходимо скрыть эти поля от видимости и невозможности их отредактировать. В этом рецепте вы узнаете как.

Эта маленькая хитрость чрезвычайно проста: Все, что вам нужно сделать, это дать имя, начинающееся с символа подчеркивания в пользовательской области, когда вы создаете пост, и оно не будет [...]]]></description>
		<wfw:commentRss>http://www.wprecipe.ru/sozdaem-nevidimye-proizvolnye-polya.htm/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Отображаем категории в две колонки</title>
		<link>http://www.wprecipe.ru/otobrazhaem-kategorii-v-dve-kolonki.htm</link>
		<comments>http://www.wprecipe.ru/otobrazhaem-kategorii-v-dve-kolonki.htm#comments</comments>
		<pubDate>Tue, 12 Jan 2010 18:35:05 +0000</pubDate>
		<dc:creator>wprecipe</dc:creator>
				<category><![CDATA[Как сделать?]]></category>

		<guid isPermaLink="false">http://www.wprecipe.ru/?p=632</guid>
		<description><![CDATA[Стандартная функция WordPress wp_list_categories() отображает весь список категорий. А в этом рецепте мы узнаем, как отобразить наши категории в две колонки

Этот код вам нужно вставить в то место, где вы хотите вывести категории в две колонки:
&#60;?php
$cats = explode("&#60;br /&#62;",wp_list_categories('title_li=&#38;echo=0&#38;depth=1&#38;style=none'));
$cat_n = count($cats) - 1;
for ($i=0;$i&#60;$cat_n;$i++):
if ($i&#60;$cat_n/2):
$cat_left = $cat_left.'&#60;li&#62;'.$cats[$i].'&#60;/li&#62;';
elseif ($i&#62;=$cat_n/2):
$cat_right = $cat_right.'&#60;li&#62;'.$cats[$i].'&#60;/li&#62;';
endif;
endfor;
?&#62;
&#60;ul&#62;
&#60;?php echo $cat_left;?&#62;
&#60;/ul&#62;
&#60;ul&#62;
&#60;?php echo $cat_right;?&#62;
&#60;/ul&#62;
Вот и [...]]]></description>
		<wfw:commentRss>http://www.wprecipe.ru/otobrazhaem-kategorii-v-dve-kolonki.htm/feed</wfw:commentRss>
		<slash:comments>6</slash:comments>
		</item>
		<item>
		<title>Добавляем приватные записи в ваши посты</title>
		<link>http://www.wprecipe.ru/dobavlyaem-privatnye-zapisi-v-vashi-posty.htm</link>
		<comments>http://www.wprecipe.ru/dobavlyaem-privatnye-zapisi-v-vashi-posty.htm#comments</comments>
		<pubDate>Tue, 12 Jan 2010 11:32:58 +0000</pubDate>
		<dc:creator>wprecipe</dc:creator>
				<category><![CDATA[Как сделать?]]></category>
		<category><![CDATA[Shortcodes]]></category>

		<guid isPermaLink="false">http://www.wprecipe.ru/?p=630</guid>
		<description><![CDATA[Иногда требуется оставить приватную заметку к вашему посту, которую смогут увидеть только администраторы блога. В коробке такого функционала нет, но мы сделаем shortcode. Читайте дальше, каким образом.

Этот код вставляем в functions.php вашей темы:
add_shortcode( 'note', 'sc_note' );

function sc_note( $atts, $content = null ) {
if ( current_user_can( 'publish_posts' ) )
return '&#60;div&#62;'.$content.'&#60;/div&#62;';
return '';
}
После чего в посте при его [...]]]></description>
		<wfw:commentRss>http://www.wprecipe.ru/dobavlyaem-privatnye-zapisi-v-vashi-posty.htm/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Shortcode: показываем контент только зарегистрированным пользователям</title>
		<link>http://www.wprecipe.ru/shortcode-pokazyvaem-kontent-tolko-zaregistrirovannym-polzovatelyam.htm</link>
		<comments>http://www.wprecipe.ru/shortcode-pokazyvaem-kontent-tolko-zaregistrirovannym-polzovatelyam.htm#comments</comments>
		<pubDate>Tue, 12 Jan 2010 07:31:25 +0000</pubDate>
		<dc:creator>wprecipe</dc:creator>
				<category><![CDATA[Как сделать?]]></category>
		<category><![CDATA[Shortcodes]]></category>

		<guid isPermaLink="false">http://www.wprecipe.ru/?p=628</guid>
		<description><![CDATA[Знаете, как показывать контент только зарегистрированным пользователям вашего блога? Если нет, то читайте это рецепт и узнаете, как это сделать при помощи замечательных shortcod`ов.

Открывайте и вставляйте это код в файл functions.php:
add_shortcode( 'member', 'member_check_shortcode' );

function member_check_shortcode( $atts, $content = null ) {
if ( is_user_logged_in() &#38;&#38; !is_null( $content ) &#38;&#38; !is_feed() )
return $content;
return '';
}
После чего вы можете [...]]]></description>
		<wfw:commentRss>http://www.wprecipe.ru/shortcode-pokazyvaem-kontent-tolko-zaregistrirovannym-polzovatelyam.htm/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Циклы WordPress – получаем посты с одной даты до другой</title>
		<link>http://www.wprecipe.ru/cikly-wordpress-%e2%80%93-poluchaem-posty-s-odnoj-daty-do-drugoj.htm</link>
		<comments>http://www.wprecipe.ru/cikly-wordpress-%e2%80%93-poluchaem-posty-s-odnoj-daty-do-drugoj.htm#comments</comments>
		<pubDate>Mon, 11 Jan 2010 15:30:20 +0000</pubDate>
		<dc:creator>wprecipe</dc:creator>
				<category><![CDATA[Как сделать?]]></category>

		<guid isPermaLink="false">http://www.wprecipe.ru/?p=626</guid>
		<description><![CDATA[Циклы в WordPress очень функциональны, используя функцию query_posts(), мы можем задавать параметры отображения постов. Сегодня я расскажу, как используя эту функцию, мы можем получить посты с одной даты до другой. Давайте посмотрим, как это сделать.

Открываем файл index.php нашей темы и до цикла вставляем наш запрос с указанием двух дат:
&#60;?php
function filter_where($where = '') {
$where .= " [...]]]></description>
		<wfw:commentRss>http://www.wprecipe.ru/cikly-wordpress-%e2%80%93-poluchaem-posty-s-odnoj-daty-do-drugoj.htm/feed</wfw:commentRss>
		<slash:comments>3</slash:comments>
		</item>
		<item>
		<title>Отображаем сегодняшнюю дату на вашем блоге</title>
		<link>http://www.wprecipe.ru/otobrazhaem-segodnyashnyuyu-datu-na-vashem-bloge.htm</link>
		<comments>http://www.wprecipe.ru/otobrazhaem-segodnyashnyuyu-datu-na-vashem-bloge.htm#comments</comments>
		<pubDate>Mon, 11 Jan 2010 13:29:16 +0000</pubDate>
		<dc:creator>wprecipe</dc:creator>
				<category><![CDATA[Как сделать?]]></category>

		<guid isPermaLink="false">http://www.wprecipe.ru/?p=624</guid>
		<description><![CDATA[Много блогов показывают текущую дату и время, насколько это нужный функционал – вопрос спорный. Но в это рецепте я вам расскажу, как это сделать просто, используя функцию php date()
К примеру, вы хотите отобразить дату в шапке вашей темы, для этого надо открыть файл headers.php и вставить этот код:
&#60;?php echo date('l jS F Y'); ?&#62;
Более подробно [...]]]></description>
		<wfw:commentRss>http://www.wprecipe.ru/otobrazhaem-segodnyashnyuyu-datu-na-vashem-bloge.htm/feed</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Легкий способ получить посты со специфичным значением произвольных полей</title>
		<link>http://www.wprecipe.ru/legkij-sposob-poluchit-posty-so-specifichnym-znacheniem-proizvolnyx-polej.htm</link>
		<comments>http://www.wprecipe.ru/legkij-sposob-poluchit-posty-so-specifichnym-znacheniem-proizvolnyx-polej.htm#comments</comments>
		<pubDate>Mon, 11 Jan 2010 07:27:36 +0000</pubDate>
		<dc:creator>wprecipe</dc:creator>
				<category><![CDATA[Как сделать?]]></category>
		<category><![CDATA[Произвольные поля]]></category>

		<guid isPermaLink="false">http://www.wprecipe.ru/?p=622</guid>
		<description><![CDATA[Если вы ищете способ получения списка постов с определенным ключом или значением произвольного поля, то это рецепт как раз для вас, читайте и делайте.
Для применения рецепта, найдите цикл и вставьте туда функцию query_posts(), пример ниже:
&#60;?php query_posts('meta_key=reviews&#38;meta_value=movie');  ?&#62;
&#60;?php if (have_posts()) : ?&#62;
&#60;?php while (have_posts()) : the_post(); ?&#62;
После сохранения мы получим список постов, в которых указан ключ [...]]]></description>
		<wfw:commentRss>http://www.wprecipe.ru/legkij-sposob-poluchit-posty-so-specifichnym-znacheniem-proizvolnyx-polej.htm/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Получаем короткие ссылки для соц. закладок</title>
		<link>http://www.wprecipe.ru/poluchaem-korotkie-ssylki-dlya-soc-zakladok.htm</link>
		<comments>http://www.wprecipe.ru/poluchaem-korotkie-ssylki-dlya-soc-zakladok.htm#comments</comments>
		<pubDate>Sun, 10 Jan 2010 18:25:53 +0000</pubDate>
		<dc:creator>wprecipe</dc:creator>
				<category><![CDATA[Как сделать?]]></category>

		<guid isPermaLink="false">http://www.wprecipe.ru/?p=620</guid>
		<description><![CDATA[Когда мы публикуем ссылки в Twitter`e или в других социальных закладках, скорее всего потребуется короткая ссылка. Конечно мы можем воспользоваться сервисами, делающими ссылки короткими, но можем воспользоваться средствами самого WordPress. Как? Читайте рецепт.

Этот рецепт очень прост, для получения коротких ссылок, мы воспользуемся ID наших постов и умолчательной системой генерации ссылок в WordPress, то бишь наши [...]]]></description>
		<wfw:commentRss>http://www.wprecipe.ru/poluchaem-korotkie-ssylki-dlya-soc-zakladok.htm/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

