﻿define('DISALLOW_FILE_EDIT', true);
define('DISALLOW_FILE_MODS', true);<?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>/dev/head &#187; text widget</title>
	<atom:link href="http://devhead.ru/cat/text-widget/feed" rel="self" type="application/rss+xml" />
	<link>http://devhead.ru</link>
	<description>Статьи и видео уроки</description>
	<lastBuildDate>Mon, 30 Jan 2017 11:12:34 +0000</lastBuildDate>
	<language>ru-RU</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>https://wordpress.org/?v=4.1.37</generator>
	<item>
		<title>WordPress text widget with text from post for each category woocommerce</title>
		<link>http://devhead.ru/read/wordpress-text-widget-with-text-from-post-for-each-category-woocommerce</link>
		<comments>http://devhead.ru/read/wordpress-text-widget-with-text-from-post-for-each-category-woocommerce#comments</comments>
		<pubDate>Fri, 06 Jun 2014 18:23:02 +0000</pubDate>
		<dc:creator><![CDATA[Аноним]]></dc:creator>
				<category><![CDATA[Статьи]]></category>
		<category><![CDATA[php]]></category>
		<category><![CDATA[text widget]]></category>
		<category><![CDATA[woocommerce]]></category>
		<category><![CDATA[wordprss]]></category>

		<guid isPermaLink="false">http://devhead.ru/read/wordpress-text-widget-with-text-from-post-for-each-category-woocommerce</guid>
		<description><![CDATA[How make wordpress text widget with text from post for each category woocommerce? It's easy! install plugin Enhanced Text Widget; add code in Enhanced Text Widget textarea; &#60;?php function show_text($id) { $my_postid = $id; $content_post = get_post($my_postid); $content = $content_post-&#62;post_content; $content=apply_filters('the_content',$content); $content = str_replace(']]&#62;', ']]&#62;', $content); echo $content; } global $wp_query; $cat_obj = $wp_query-&#62;get_queried_object(); $category_name [&#8230;]]]></description>
				<content:encoded><![CDATA[<p>How make wordpress text widget with text from post for each category woocommerce?<br />
It's easy!</p>
<ul>
<li>install plugin <strong>Enhanced Text Widget;</strong></li>
<li>add code in<strong> Enhanced Text Widget </strong>textarea<strong>;</strong></li>
</ul>
<pre class="brush: php">&lt;?php  
function show_text($id)
{
$my_postid = $id;
$content_post = get_post($my_postid);
$content = $content_post-&gt;post_content;
$content=apply_filters('the_content',$content);
$content = str_replace(']]&gt;', ']]&gt;', $content);
echo $content;
}

global $wp_query;
$cat_obj = $wp_query-&gt;get_queried_object();

$category_name = $cat_obj-&gt;name;

switch($category_name){
case 'Test1': show_text(22);break;
case 'Test2': show_text(23);break;
case 'Test3': show_text(24);break;
case 'Test4': show_text(25);break;
}
?&gt;</pre>
]]></content:encoded>
			<wfw:commentRss>http://devhead.ru/read/wordpress-text-widget-with-text-from-post-for-each-category-woocommerce/feed</wfw:commentRss>
		<slash:comments>9</slash:comments>
		</item>
		<item>
		<title>WordPress text widget with text from post</title>
		<link>http://devhead.ru/read/wordpress-text-widget-with-text-from-post</link>
		<comments>http://devhead.ru/read/wordpress-text-widget-with-text-from-post#comments</comments>
		<pubDate>Fri, 06 Jun 2014 18:15:03 +0000</pubDate>
		<dc:creator><![CDATA[Аноним]]></dc:creator>
				<category><![CDATA[Статьи]]></category>
		<category><![CDATA[php]]></category>
		<category><![CDATA[text widget]]></category>
		<category><![CDATA[wordprss]]></category>

		<guid isPermaLink="false">http://devhead.ru/read/wordpress-text-widget-with-text-from-post</guid>
		<description><![CDATA[install plugin Enhanced Text Widget; add code in Enhanced Text Widget textarea; &#60;?php $my_postid = 22; //id your post $content_post = get_post($my_postid); $content = $content_post-&#62;post_content; $content =apply_filters('the_content',$content); $content = str_replace(']]&#62;', ']]&#62;', $content); echo $content; ?&#62;]]></description>
				<content:encoded><![CDATA[<ul>
<li>install plugin <strong>Enhanced Text Widget;</strong></li>
<li>add code in<strong> Enhanced Text Widget </strong>textarea<strong>;<br /></strong></li>
</ul>
<p><pre class="brush: php">&lt;?php
$my_postid = 22; //id your post
$content_post = get_post($my_postid);
$content = $content_post-&gt;post_content;
$content =apply_filters('the_content',$content);
$content = str_replace(']]&gt;', ']]&gt;', $content);
echo $content;
?&gt;</pre></p>
]]></content:encoded>
			<wfw:commentRss>http://devhead.ru/read/wordpress-text-widget-with-text-from-post/feed</wfw:commentRss>
		<slash:comments>451</slash:comments>
		</item>
	</channel>
</rss>
<!-- WP Super Cache is installed but broken. The path to wp-cache-phase1.php in wp-content/advanced-cache.php must be fixed! -->