<?xml version="1.0" encoding="UTF-8"?>
<?xml-stylesheet type="text/xsl" media="screen" href="/~d/styles/rss2full.xsl"?><?xml-stylesheet type="text/css" media="screen" href="http://feeds.feedburner.com/~d/styles/itemcontent.css"?><rss 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/" xmlns:feedburner="http://rssnamespace.org/feedburner/ext/1.0" version="2.0">

<channel>
	<title>GM Studio</title>
	
	<link>http://gmstudio.com.ua</link>
	<description>помощник в работе с WordPress</description>
	<lastBuildDate>Sat, 12 Mar 2011 11:47:17 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<atom10:link xmlns:atom10="http://www.w3.org/2005/Atom" rel="self" type="application/rss+xml" href="http://feeds.feedburner.com/gmstudio" /><feedburner:info uri="gmstudio" /><atom10:link xmlns:atom10="http://www.w3.org/2005/Atom" rel="hub" href="http://pubsubhubbub.appspot.com/" /><item>
		<title>Нахожусь в творческом отпуске :)</title>
		<link>http://feedproxy.google.com/~r/gmstudio/~3/wUgvQlEsjBE/</link>
		<comments>http://gmstudio.com.ua/work-with-wordpress/naxozhus-v-tvorcheskom-otpuske/#comments</comments>
		<pubDate>Sat, 12 Mar 2011 11:46:57 +0000</pubDate>
		<dc:creator>MaxBloger</dc:creator>
				<category><![CDATA[Работем с WordPress]]></category>

		<guid isPermaLink="false">http://gmstudio.com.ua/work-with-wordpress/naxozhus-v-moralnom-otpuske/</guid>
		<description />
			<content:encoded><![CDATA[<img src="http://feeds.feedburner.com/~r/gmstudio/~4/wUgvQlEsjBE" height="1" width="1"/>]]></content:encoded>
			<wfw:commentRss>http://gmstudio.com.ua/work-with-wordpress/naxozhus-v-tvorcheskom-otpuske/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		<feedburner:origLink>http://gmstudio.com.ua/work-with-wordpress/naxozhus-v-tvorcheskom-otpuske/</feedburner:origLink></item>
		<item>
		<title>Отображаем рекламу после первого поста в WordPress</title>
		<link>http://feedproxy.google.com/~r/gmstudio/~3/LD5M1RekIHU/</link>
		<comments>http://gmstudio.com.ua/work-with-wordpress/otobrazhaem-reklamu-posle-pervogo-posta/#comments</comments>
		<pubDate>Tue, 22 Jun 2010 20:53:03 +0000</pubDate>
		<dc:creator>MaxBloger</dc:creator>
				<category><![CDATA[Работем с WordPress]]></category>

		<guid isPermaLink="false">http://gmstudio.com.ua/?p=63</guid>
		<description><![CDATA[Иногда, в WordPress, после первого поста нужно разместить рекламу, для этого используем следующий код:

&#60;?php if &#40;have_posts&#40;&#41;&#41; : ?&#62;
&#160;
&#60;?php while &#40;have_posts&#40;&#41;&#41; : the_post&#40;&#41;; $loopcounter++; ?&#62;
&#160;
  // the loop stuffs
&#160;
  &#60;?php if &#40;$loopcounter &#60;= 1&#41; &#123; include &#40;TEMPLATEPATH . '/ad.php'&#41;; &#125; ?&#62;
&#160;
&#60;?php endwhile; ?&#62;
&#160;
&#60;?php else : ?&#62;
&#160;
&#60;?php endif; ?&#62;

]]></description>
			<content:encoded><![CDATA[<p>Иногда, в WordPress, после первого поста нужно разместить рекламу, для этого используем следующий код:</p>

<div class="wp_syntax"><div class="code"><pre class="php" style="font-family:monospace;"><span style="color: #000000; font-weight: bold;">&lt;?php</span> <span style="color: #b1b100;">if</span> <span style="color: #009900;">&#40;</span>have_posts<span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #009900;">&#41;</span> <span style="color: #339933;">:</span> <span style="color: #000000; font-weight: bold;">?&gt;</span>
&nbsp;
<span style="color: #000000; font-weight: bold;">&lt;?php</span> <span style="color: #b1b100;">while</span> <span style="color: #009900;">&#40;</span>have_posts<span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #009900;">&#41;</span> <span style="color: #339933;">:</span> the_post<span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span> <span style="color: #000088;">$loopcounter</span><span style="color: #339933;">++;</span> <span style="color: #000000; font-weight: bold;">?&gt;</span>
&nbsp;
  // the loop stuffs
&nbsp;
  <span style="color: #000000; font-weight: bold;">&lt;?php</span> <span style="color: #b1b100;">if</span> <span style="color: #009900;">&#40;</span><span style="color: #000088;">$loopcounter</span> <span style="color: #339933;">&lt;=</span> <span style="color: #cc66cc;">1</span><span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span> <span style="color: #b1b100;">include</span> <span style="color: #009900;">&#40;</span>TEMPLATEPATH <span style="color: #339933;">.</span> <span style="color: #0000ff;">'/ad.php'</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span> <span style="color: #009900;">&#125;</span> <span style="color: #000000; font-weight: bold;">?&gt;</span>
&nbsp;
<span style="color: #000000; font-weight: bold;">&lt;?php</span> <span style="color: #b1b100;">endwhile</span><span style="color: #339933;">;</span> <span style="color: #000000; font-weight: bold;">?&gt;</span>
&nbsp;
<span style="color: #000000; font-weight: bold;">&lt;?php</span> <span style="color: #b1b100;">else</span> <span style="color: #339933;">:</span> <span style="color: #000000; font-weight: bold;">?&gt;</span>
&nbsp;
<span style="color: #000000; font-weight: bold;">&lt;?php</span> <span style="color: #b1b100;">endif</span><span style="color: #339933;">;</span> <span style="color: #000000; font-weight: bold;">?&gt;</span></pre></div></div>

<img src="http://feeds.feedburner.com/~r/gmstudio/~4/LD5M1RekIHU" height="1" width="1"/>]]></content:encoded>
			<wfw:commentRss>http://gmstudio.com.ua/work-with-wordpress/otobrazhaem-reklamu-posle-pervogo-posta/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		<feedburner:origLink>http://gmstudio.com.ua/work-with-wordpress/otobrazhaem-reklamu-posle-pervogo-posta/</feedburner:origLink></item>
		<item>
		<title>Разные шаблоны single.php для разных рубрик в WordPress</title>
		<link>http://feedproxy.google.com/~r/gmstudio/~3/A5SFGENLu4k/</link>
		<comments>http://gmstudio.com.ua/work-with-wordpress/raznye-shablony-single-php-dlya-raznyx-rubrik-v-wordpress/#comments</comments>
		<pubDate>Wed, 16 Jun 2010 21:06:29 +0000</pubDate>
		<dc:creator>MaxBloger</dc:creator>
				<category><![CDATA[Работем с WordPress]]></category>

		<guid isPermaLink="false">http://gmstudio.com.ua/?p=62</guid>
		<description><![CDATA[Допустим, Вы хотите использовать различные шаблоны вывода постов в определённых рубриках. Используем &#8220;in_category&#8221; для определения в какой рубрике находится пост, а затем применяем нужный нам шаблон. Добавляем следующий код в файл single.php:

&#60;?php
  $post = $wp_query- &#62;post;
&#160;
  if &#40; in_category&#40;'1'&#41; &#41; &#123;
  include&#40;TEMPLATEPATH . '/single1.php'&#41;;
&#160;
  &#125; elseif &#40; in_category&#40;'2'&#41; &#41; &#123;
  [...]]]></description>
			<content:encoded><![CDATA[<p>Допустим, Вы хотите использовать различные шаблоны вывода постов в определённых рубриках. Используем &#8220;in_category&#8221; для определения в какой рубрике находится пост, а затем применяем нужный нам шаблон. Добавляем следующий код в файл single.php:</p>

<div class="wp_syntax"><div class="code"><pre class="php" style="font-family:monospace;"><span style="color: #000000; font-weight: bold;">&lt;?php</span>
  <span style="color: #000088;">$post</span> <span style="color: #339933;">=</span> <span style="color: #000088;">$wp_query</span><span style="color: #339933;">-</span> <span style="color: #339933;">&gt;</span>post<span style="color: #339933;">;</span>
&nbsp;
  <span style="color: #b1b100;">if</span> <span style="color: #009900;">&#40;</span> in_category<span style="color: #009900;">&#40;</span><span style="color: #0000ff;">'1'</span><span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span>
  <span style="color: #b1b100;">include</span><span style="color: #009900;">&#40;</span>TEMPLATEPATH <span style="color: #339933;">.</span> <span style="color: #0000ff;">'/single1.php'</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
&nbsp;
  <span style="color: #009900;">&#125;</span> <span style="color: #b1b100;">elseif</span> <span style="color: #009900;">&#40;</span> in_category<span style="color: #009900;">&#40;</span><span style="color: #0000ff;">'2'</span><span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span>
  <span style="color: #b1b100;">include</span><span style="color: #009900;">&#40;</span>TEMPLATEPATH <span style="color: #339933;">.</span> <span style="color: #0000ff;">'/single2.php'</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
&nbsp;
  <span style="color: #009900;">&#125;</span> <span style="color: #b1b100;">else</span> <span style="color: #009900;">&#123;</span>
  <span style="color: #b1b100;">include</span><span style="color: #009900;">&#40;</span>TEMPLATEPATH <span style="color: #339933;">.</span> <span style="color: #0000ff;">'/single_other.php'</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
&nbsp;
  <span style="color: #009900;">&#125;</span>
<span style="color: #000000; font-weight: bold;">?&gt;</span></pre></div></div>

<p>Пояснение кода: если пост находится в рубрике с ID1, используется файл single1.php, если с ID2 &#8211; single2.php, для остальных рубрик будет использоваться шаблон в файле single_other.php.</p>
<img src="http://feeds.feedburner.com/~r/gmstudio/~4/A5SFGENLu4k" height="1" width="1"/>]]></content:encoded>
			<wfw:commentRss>http://gmstudio.com.ua/work-with-wordpress/raznye-shablony-single-php-dlya-raznyx-rubrik-v-wordpress/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		<feedburner:origLink>http://gmstudio.com.ua/work-with-wordpress/raznye-shablony-single-php-dlya-raznyx-rubrik-v-wordpress/</feedburner:origLink></item>
		<item>
		<title>Аюрведа на ВедаБлоге</title>
		<link>http://feedproxy.google.com/~r/gmstudio/~3/LkpF7riYJgI/</link>
		<comments>http://gmstudio.com.ua/wordpress-portfolio/ayurveda-na-vedabloge/#comments</comments>
		<pubDate>Tue, 08 Jun 2010 23:46:57 +0000</pubDate>
		<dc:creator>MaxBloger</dc:creator>
				<category><![CDATA[WordPress Portfolio]]></category>

		<guid isPermaLink="false">http://gmstudio.com.ua/?p=60</guid>
		<description><![CDATA[

Аюрведа на ВедаБлоге
Что делалось: установка и настройка движка, установка и настройка плагинов, интеграция дизайна в WordPress.
]]></description>
			<content:encoded><![CDATA[<p><img src="http://gmstudio.com.ua/wp-content/uploads/2010/06/vedablogru-576x362.jpg" alt="" title="vedablogru" width="576" height="362" class="alignnone size-large wp-image-61" /></p>
<p><span id="more-60"></span></p>
<p><a href="http://www.vedablog.ru/" title="Аюрведа на ВедаБлоге">Аюрведа на ВедаБлоге</a></p>
<p><strong>Что делалось</strong>: установка и настройка движка, установка и настройка плагинов, интеграция дизайна в WordPress.</p>
<img src="http://feeds.feedburner.com/~r/gmstudio/~4/LkpF7riYJgI" height="1" width="1"/>]]></content:encoded>
			<wfw:commentRss>http://gmstudio.com.ua/wordpress-portfolio/ayurveda-na-vedabloge/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		<feedburner:origLink>http://gmstudio.com.ua/wordpress-portfolio/ayurveda-na-vedabloge/</feedburner:origLink></item>
		<item>
		<title>Отображаем общее число комментариев</title>
		<link>http://feedproxy.google.com/~r/gmstudio/~3/HfcgojkP5Sc/</link>
		<comments>http://gmstudio.com.ua/work-with-wordpress/otobrazhaem-obshhee-chislo-kommentariev/#comments</comments>
		<pubDate>Sun, 06 Jun 2010 22:58:34 +0000</pubDate>
		<dc:creator>MaxBloger</dc:creator>
				<category><![CDATA[Работем с WordPress]]></category>

		<guid isPermaLink="false">http://gmstudio.com.ua/?p=59</guid>
		<description><![CDATA[Для того, чтобы вывести общее число комментариев, оставленных в Вашем WordPress, необходимо, в нужном месте, вставить следующий код:

&#60;?php
global $wpdb;
$where = 'WHERE comment_approved = 1';
$comment_counts = &#40;array&#41; $wpdb-&#62;get_results&#40;&#34;
 SELECT  COUNT( * ) AS total
 FROM {$wpdb-&#62;comments}
 {$where}
 &#34;, object&#41;;
&#160;
echo $comment_counts&#91;0&#93;-&#62;total;
?&#62;

]]></description>
			<content:encoded><![CDATA[<p>Для того, чтобы вывести общее число комментариев, оставленных в Вашем WordPress, необходимо, в нужном месте, вставить следующий код:</p>

<div class="wp_syntax"><div class="code"><pre class="php" style="font-family:monospace;"><span style="color: #000000; font-weight: bold;">&lt;?php</span>
<span style="color: #000000; font-weight: bold;">global</span> <span style="color: #000088;">$wpdb</span><span style="color: #339933;">;</span>
<span style="color: #000088;">$where</span> <span style="color: #339933;">=</span> <span style="color: #0000ff;">'WHERE comment_approved = 1'</span><span style="color: #339933;">;</span>
<span style="color: #000088;">$comment_counts</span> <span style="color: #339933;">=</span> <span style="color: #009900;">&#40;</span><span style="color: #990000;">array</span><span style="color: #009900;">&#41;</span> <span style="color: #000088;">$wpdb</span><span style="color: #339933;">-&gt;</span><span style="color: #004000;">get_results</span><span style="color: #009900;">&#40;</span><span style="color: #0000ff;">&quot;
 SELECT  COUNT( * ) AS total
 FROM <span style="color: #006699; font-weight: bold;">{$wpdb-&gt;comments}</span>
 <span style="color: #006699; font-weight: bold;">{$where}</span>
 &quot;</span><span style="color: #339933;">,</span> object<span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
&nbsp;
<span style="color: #b1b100;">echo</span> <span style="color: #000088;">$comment_counts</span><span style="color: #009900;">&#91;</span><span style="color: #cc66cc;">0</span><span style="color: #009900;">&#93;</span><span style="color: #339933;">-&gt;</span><span style="color: #004000;">total</span><span style="color: #339933;">;</span>
<span style="color: #000000; font-weight: bold;">?&gt;</span></pre></div></div>

<img src="http://feeds.feedburner.com/~r/gmstudio/~4/HfcgojkP5Sc" height="1" width="1"/>]]></content:encoded>
			<wfw:commentRss>http://gmstudio.com.ua/work-with-wordpress/otobrazhaem-obshhee-chislo-kommentariev/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		<feedburner:origLink>http://gmstudio.com.ua/work-with-wordpress/otobrazhaem-obshhee-chislo-kommentariev/</feedburner:origLink></item>
		<item>
		<title>Разные стили абзацев в WordPress</title>
		<link>http://feedproxy.google.com/~r/gmstudio/~3/Qy_yHJGZvAk/</link>
		<comments>http://gmstudio.com.ua/work-with-wordpress/raznye-stili-abzacev-v-wordpress/#comments</comments>
		<pubDate>Fri, 04 Jun 2010 22:29:52 +0000</pubDate>
		<dc:creator>MaxBloger</dc:creator>
				<category><![CDATA[Работем с WordPress]]></category>

		<guid isPermaLink="false">http://gmstudio.com.ua/?p=56</guid>
		<description><![CDATA[Очень редко, но случаются такие ситуации, когда каждый четный или нечетный абзац в записи, нужно оформить по разному. Для этого:
вместо стандартного

&#60;?php the_content&#40;''&#41;; ?&#62;

ставим

&#60;? 
$content = get_the_content&#40;&#41;;
$content = apply_filters&#40;'the_content', $content&#41;;
$content = str_replace&#40;']]&#62;', ']]&#38;gt;', $content&#41;;
$content = str_replace&#40;array&#40;&#34;\n&#34;, &#34;\r&#34;&#41;, '', $content&#41;;
preg_match_all&#40;'/&#60;p&#62;(.*?)&#60;\/p&#62;/',$content,$matches&#41;;
for&#40;$a = 0; $a &#60; count&#40;$matches&#91;1&#93;&#41;; $a++&#41; &#123;
 $p_content = $matches&#91;1&#93;&#91;$a&#93;;
 echo '&#60;div class=&#34;row'.&#40;$a%2&#41;.'&#34;&#62;'.$p_content.'&#60;/div&#62;';
&#125;
?&#62;

В данном случае первый абзац [...]]]></description>
			<content:encoded><![CDATA[<p>Очень редко, но случаются такие ситуации, когда каждый четный или нечетный абзац в записи, нужно оформить по разному. Для этого:</p>
<p>вместо стандартного</p>

<div class="wp_syntax"><div class="code"><pre class="php" style="font-family:monospace;"><span style="color: #000000; font-weight: bold;">&lt;?php</span> the_content<span style="color: #009900;">&#40;</span><span style="color: #0000ff;">''</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span> <span style="color: #000000; font-weight: bold;">?&gt;</span></pre></div></div>

<p>ставим</p>

<div class="wp_syntax"><div class="code"><pre class="php" style="font-family:monospace;"><span style="color: #000000; font-weight: bold;">&lt;?</span> 
<span style="color: #000088;">$content</span> <span style="color: #339933;">=</span> get_the_content<span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
<span style="color: #000088;">$content</span> <span style="color: #339933;">=</span> apply_filters<span style="color: #009900;">&#40;</span><span style="color: #0000ff;">'the_content'</span><span style="color: #339933;">,</span> <span style="color: #000088;">$content</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
<span style="color: #000088;">$content</span> <span style="color: #339933;">=</span> <span style="color: #990000;">str_replace</span><span style="color: #009900;">&#40;</span><span style="color: #0000ff;">']]&gt;'</span><span style="color: #339933;">,</span> <span style="color: #0000ff;">']]&amp;gt;'</span><span style="color: #339933;">,</span> <span style="color: #000088;">$content</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
<span style="color: #000088;">$content</span> <span style="color: #339933;">=</span> <span style="color: #990000;">str_replace</span><span style="color: #009900;">&#40;</span><span style="color: #990000;">array</span><span style="color: #009900;">&#40;</span><span style="color: #0000ff;">&quot;<span style="color: #000099; font-weight: bold;">\n</span>&quot;</span><span style="color: #339933;">,</span> <span style="color: #0000ff;">&quot;<span style="color: #000099; font-weight: bold;">\r</span>&quot;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">,</span> <span style="color: #0000ff;">''</span><span style="color: #339933;">,</span> <span style="color: #000088;">$content</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
<span style="color: #990000;">preg_match_all</span><span style="color: #009900;">&#40;</span><span style="color: #0000ff;">'/&lt;p&gt;(.*?)&lt;\/p&gt;/'</span><span style="color: #339933;">,</span><span style="color: #000088;">$content</span><span style="color: #339933;">,</span><span style="color: #000088;">$matches</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
<span style="color: #b1b100;">for</span><span style="color: #009900;">&#40;</span><span style="color: #000088;">$a</span> <span style="color: #339933;">=</span> <span style="color: #cc66cc;">0</span><span style="color: #339933;">;</span> <span style="color: #000088;">$a</span> <span style="color: #339933;">&lt;</span> <span style="color: #990000;">count</span><span style="color: #009900;">&#40;</span><span style="color: #000088;">$matches</span><span style="color: #009900;">&#91;</span><span style="color: #cc66cc;">1</span><span style="color: #009900;">&#93;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span> <span style="color: #000088;">$a</span><span style="color: #339933;">++</span><span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span>
 <span style="color: #000088;">$p_content</span> <span style="color: #339933;">=</span> <span style="color: #000088;">$matches</span><span style="color: #009900;">&#91;</span><span style="color: #cc66cc;">1</span><span style="color: #009900;">&#93;</span><span style="color: #009900;">&#91;</span><span style="color: #000088;">$a</span><span style="color: #009900;">&#93;</span><span style="color: #339933;">;</span>
 <span style="color: #b1b100;">echo</span> <span style="color: #0000ff;">'&lt;div class=&quot;row'</span><span style="color: #339933;">.</span><span style="color: #009900;">&#40;</span><span style="color: #000088;">$a</span><span style="color: #339933;">%</span><span style="color:#800080;">2</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">.</span><span style="color: #0000ff;">'&quot;&gt;'</span><span style="color: #339933;">.</span><span style="color: #000088;">$p_content</span><span style="color: #339933;">.</span><span style="color: #0000ff;">'&lt;/div&gt;'</span><span style="color: #339933;">;</span>
<span style="color: #009900;">&#125;</span>
<span style="color: #000000; font-weight: bold;">?&gt;</span></pre></div></div>

<p>В данном случае первый абзац будет иметь вид:</p>

<div class="wp_syntax"><div class="code"><pre class="html" style="font-family:monospace;">&lt;div class=&quot;row0&quot;&gt;здесь текст первого абзаца&lt;/div&gt;</pre></div></div>

<p>второй:</p>

<div class="wp_syntax"><div class="code"><pre class="html" style="font-family:monospace;">&lt;div class=&quot;row1&quot;&gt;здесь текст второго абзаца&lt;/div&gt;</pre></div></div>

<p> третий снова:</p>

<div class="wp_syntax"><div class="code"><pre class="html" style="font-family:monospace;">&lt;div class=&quot;row0&quot;&gt;здесь текст третьего абзаца&lt;/div&gt;</pre></div></div>

<p> и т.д.</p>
<p>&#8220;%2&#8243; используем для регулировки количества &#8220;разных&#8221; абзацев.</p>
<p>p.s. не забываем в файле стилей прописать классы .row0 и .row1.</p>
<p>p.p.s. кому и для чего это понадобится я не знаю, но случаи всякие бывают..</p>
<img src="http://feeds.feedburner.com/~r/gmstudio/~4/Qy_yHJGZvAk" height="1" width="1"/>]]></content:encoded>
			<wfw:commentRss>http://gmstudio.com.ua/work-with-wordpress/raznye-stili-abzacev-v-wordpress/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		<feedburner:origLink>http://gmstudio.com.ua/work-with-wordpress/raznye-stili-abzacev-v-wordpress/</feedburner:origLink></item>
		<item>
		<title>Динамический title в WordPress</title>
		<link>http://feedproxy.google.com/~r/gmstudio/~3/YlP7jK3akcg/</link>
		<comments>http://gmstudio.com.ua/work-with-wordpress/dinamicheskij-title-v-wordpress/#comments</comments>
		<pubDate>Tue, 01 Jun 2010 21:11:30 +0000</pubDate>
		<dc:creator>MaxBloger</dc:creator>
				<category><![CDATA[Работем с WordPress]]></category>

		<guid isPermaLink="false">http://gmstudio.com.ua/?p=54</guid>
		<description><![CDATA[
&#60;title&#62;
&#60;?php
if &#40;is_home&#40;&#41;&#41; &#123;
	echo bloginfo&#40;'name'&#41;;
&#125; elseif &#40;is_404&#40;&#41;&#41; &#123;
	echo 'Ошибка 404';
&#125; elseif &#40;is_category&#40;&#41;&#41; &#123;
	echo 'Рубрика:'; wp_title&#40;''&#41;;
&#125; elseif &#40;is_search&#40;&#41;&#41; &#123;
	echo 'Результаты поиска: ';  the_search_query&#40;&#41;;
&#125; elseif &#40; is_day&#40;&#41; &#124;&#124; is_month&#40;&#41; &#124;&#124; is_year&#40;&#41; &#41; &#123;
	echo 'Архив:'; wp_title&#40;''&#41;;
&#125; else &#123;
	echo wp_title&#40;''&#41;;
&#125;
?&#62;
&#60;/title&#62;

]]></description>
			<content:encoded><![CDATA[
<div class="wp_syntax"><div class="code"><pre class="php" style="font-family:monospace;">&lt;title&gt;
<span style="color: #000000; font-weight: bold;">&lt;?php</span>
<span style="color: #b1b100;">if</span> <span style="color: #009900;">&#40;</span>is_home<span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span>
	<span style="color: #b1b100;">echo</span> bloginfo<span style="color: #009900;">&#40;</span><span style="color: #0000ff;">'name'</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
<span style="color: #009900;">&#125;</span> <span style="color: #b1b100;">elseif</span> <span style="color: #009900;">&#40;</span>is_404<span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span>
	<span style="color: #b1b100;">echo</span> <span style="color: #0000ff;">'Ошибка 404'</span><span style="color: #339933;">;</span>
<span style="color: #009900;">&#125;</span> <span style="color: #b1b100;">elseif</span> <span style="color: #009900;">&#40;</span>is_category<span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span>
	<span style="color: #b1b100;">echo</span> <span style="color: #0000ff;">'Рубрика:'</span><span style="color: #339933;">;</span> wp_title<span style="color: #009900;">&#40;</span><span style="color: #0000ff;">''</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
<span style="color: #009900;">&#125;</span> <span style="color: #b1b100;">elseif</span> <span style="color: #009900;">&#40;</span>is_search<span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span>
	<span style="color: #b1b100;">echo</span> <span style="color: #0000ff;">'Результаты поиска: '</span><span style="color: #339933;">;</span>  the_search_query<span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
<span style="color: #009900;">&#125;</span> <span style="color: #b1b100;">elseif</span> <span style="color: #009900;">&#40;</span> is_day<span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span> <span style="color: #339933;">||</span> is_month<span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span> <span style="color: #339933;">||</span> is_year<span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span>
	<span style="color: #b1b100;">echo</span> <span style="color: #0000ff;">'Архив:'</span><span style="color: #339933;">;</span> wp_title<span style="color: #009900;">&#40;</span><span style="color: #0000ff;">''</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
<span style="color: #009900;">&#125;</span> <span style="color: #b1b100;">else</span> <span style="color: #009900;">&#123;</span>
	<span style="color: #b1b100;">echo</span> wp_title<span style="color: #009900;">&#40;</span><span style="color: #0000ff;">''</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
<span style="color: #009900;">&#125;</span>
<span style="color: #000000; font-weight: bold;">?&gt;</span>
&lt;/title&gt;</pre></div></div>

<img src="http://feeds.feedburner.com/~r/gmstudio/~4/YlP7jK3akcg" height="1" width="1"/>]]></content:encoded>
			<wfw:commentRss>http://gmstudio.com.ua/work-with-wordpress/dinamicheskij-title-v-wordpress/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		<feedburner:origLink>http://gmstudio.com.ua/work-with-wordpress/dinamicheskij-title-v-wordpress/</feedburner:origLink></item>
	</channel>
</rss>

