<?xml version="1.0" encoding="UTF-8"?>
<!-- generator="bbPress/1.0.2" -->
<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>Support Forum - Topic: the_content filters a</title>
		<link>http://www.kriesi.at/support/topic/the_content-filters-a</link>
		<description>Support Forum - Topic: the_content filters a</description>
		<language>en-US</language>
		<pubDate>Thu, 20 Jun 2013 02:15:56 +0000</pubDate>
		<generator>http://bbpress.org/?v=1.0.2</generator>
		<textInput>
			<title><![CDATA[Search]]></title>
			<description><![CDATA[Search all topics from these forums.]]></description>
			<name>q</name>
			<link>http://www.kriesi.at/support/search.php</link>
		</textInput>
		<atom:link href="http://www.kriesi.at/support/rss/topic/the_content-filters-a" rel="self" type="application/rss+xml" />

		<item>
			<title>Dude on "the_content filters a"</title>
			<link>http://www.kriesi.at/support/topic/the_content-filters-a#post-84193</link>
			<pubDate>Fri, 16 Nov 2012 07:11:28 +0000</pubDate>
			<dc:creator>Dude</dc:creator>
			<guid isPermaLink="false">84193@http://www.kriesi.at/support/</guid>
			<description>&#60;p&#62;I think you need to save the content into a variable like:&#60;/p&#62;
&#60;pre&#62;&#60;code&#62;$content = get_the_content(__(&#38;#39;Read more&#38;#39;,&#38;#39;avia_framework&#38;#39;).&#38;#39;&#38;lt;span class=&#38;quot;more-link-arrow&#38;quot;&#38;gt; →&#38;lt;/span&#38;gt;&#38;#39;);
$content = apply_filters(&#38;#39;the_content&#38;#39;, get_post_meta($post-&#38;gt;ID, &#38;#39;news_shortcode&#38;#39;, true));
echo $content;&#60;/code&#62;&#60;/pre&#62;</description>
		</item>
		<item>
			<title>maratino on "the_content filters a"</title>
			<link>http://www.kriesi.at/support/topic/the_content-filters-a#post-84090</link>
			<pubDate>Thu, 15 Nov 2012 15:23:29 +0000</pubDate>
			<dc:creator>maratino</dc:creator>
			<guid isPermaLink="false">84090@http://www.kriesi.at/support/</guid>
			<description>&#60;p&#62;I modified functions.php to add a list of taged news by using a shortcode. The Shortcode is pulled from a CPT-field.&#60;/p&#62;
&#60;p&#62;If I add this:&#60;br /&#62;
echo apply_filters('the_content', get_post_meta($post-&#38;gt;ID, 'news_shortcode', true));&#60;/p&#62;
&#60;p&#62;my &#38;lt;div&#38;gt; inside the content gets filtered?&#60;/p&#62;
&#60;p&#62;//check if the portfolio item was requested by an ajax call and returns that&#60;br /&#62;
if(!function_exists('avia_check_ajax_request')){&#60;/p&#62;
&#60;p&#62;	add_action('wp_ajax_avia_check_portfolio', 'avia_check_ajax_request');&#60;br /&#62;
	add_action('wp_ajax_nopriv_avia_check_portfolio', 'avia_check_ajax_request');&#60;/p&#62;
&#60;p&#62;	function avia_check_ajax_request()&#60;br /&#62;
	{&#60;br /&#62;
		if(!isset($_POST['avia_ajax_request'])) return false;&#60;/p&#62;
&#60;p&#62;		global $avia_config, $more;&#60;br /&#62;
		$avia_config['avia_is_overview'] = false;&#60;br /&#62;
		$avia_config['is_ajax_request'] = true;&#60;/p&#62;
&#60;p&#62;		$id 	= $_POST['avia_ajax_request']; &#60;/p&#62;
&#60;p&#62;		global $post;&#60;br /&#62;
		$post = get_post( $id );&#60;br /&#62;
		setup_postdata($post);	&#60;/p&#62;
&#60;p&#62;		$more   = 0;&#60;br /&#62;
		$slider = new avia_slideshow($id);&#60;br /&#62;
		$slider -&#38;gt; setImageSize('fullsize');&#60;br /&#62;
		$slider_html = $slider-&#38;gt;display();&#60;/p&#62;
&#60;p&#62;		echo &#34;&#38;lt;div class='ajax_slide ajax_slide_&#34;.$id.&#34;' data-slide-id='&#34;.$id.&#34;' &#38;gt;&#34;;&#60;/p&#62;
&#60;p&#62;			echo &#34;&#38;lt;div class='inner_slide'&#38;gt;&#34;;&#60;/p&#62;
&#60;p&#62;				echo &#34;&#38;lt;div class='flex_column two_third first'&#38;gt;&#34;;&#60;br /&#62;
				echo $slider_html;&#60;br /&#62;
				echo &#34;&#38;lt;/div&#38;gt;&#34;;&#60;/p&#62;
&#60;p&#62;				echo &#34;&#38;lt;div class='portfolio-entry one_third'&#38;gt;&#34;;&#60;br /&#62;
				echo avia_title(array('class'=&#38;gt;'portfolio-title', 'html' =&#38;gt; &#34;&#38;lt;div class='{class} title_container'&#38;gt;&#38;lt;h1 class='main-title'&#38;gt;{title}&#38;lt;/h1&#38;gt;&#38;lt;/div&#38;gt;&#34;), $id);	&#60;/p&#62;
&#60;p&#62;				$meta = avia_portfolio_meta($id);&#60;br /&#62;
				if($meta)&#60;br /&#62;
				{&#60;/p&#62;
&#60;p&#62;					echo $meta;&#60;br /&#62;
					echo avia_advanced_hr(false, 'hr_small');&#60;br /&#62;
				}&#60;/p&#62;
&#60;p&#62;				// mg test&#60;br /&#62;
				echo apply_filters('the_content', get_post_meta($post-&#38;gt;ID, 'news_shortcode', true));&#60;br /&#62;
				echo &#34;&#38;lt;/div&#38;gt;&#34;;&#60;/p&#62;
&#60;p&#62;				echo &#34;&#38;lt;/div&#38;gt;&#34;;&#60;br /&#62;
			echo &#34;&#38;lt;div class='entry-content'&#38;gt;&#34;;&#60;br /&#62;
				the_content(__('Read more','avia_framework').'&#38;lt;span class=&#34;more-link-arrow&#34;&#38;gt;  &#38;rarr;&#38;lt;/span&#38;gt;');&#60;br /&#62;
			echo &#34;&#38;lt;/div&#38;gt;&#34;;&#60;/p&#62;
&#60;p&#62;			echo &#34;&#38;lt;/div&#38;gt;&#34;;&#60;/p&#62;
&#60;p&#62;		echo &#34;&#38;lt;/div&#38;gt;&#34;;&#60;br /&#62;
		unset($avia_config['is_ajax_request']);&#60;br /&#62;
		die();&#60;br /&#62;
	}&#60;br /&#62;
}
&#60;/p&#62;</description>
		</item>

	</channel>
</rss>
