<?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: CORONA: Custom post excerpt is on dynamic template page with BLOG OVERVIEW 2x</title>
		<link>http://www.kriesi.at/support/topic/corona-custom-post-excerpt-is-on-dynamic-template-page-with-blog-overview-2x</link>
		<description>Support Forum - Topic: CORONA: Custom post excerpt is on dynamic template page with BLOG OVERVIEW 2x</description>
		<language>en-US</language>
		<pubDate>Fri, 24 May 2013 05:21:46 +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/corona-custom-post-excerpt-is-on-dynamic-template-page-with-blog-overview-2x" rel="self" type="application/rss+xml" />

		<item>
			<title>Nick on "CORONA: Custom post excerpt is on dynamic template page with BLOG OVERVIEW 2x"</title>
			<link>http://www.kriesi.at/support/topic/corona-custom-post-excerpt-is-on-dynamic-template-page-with-blog-overview-2x#post-83327</link>
			<pubDate>Sun, 11 Nov 2012 16:52:12 +0000</pubDate>
			<dc:creator>Nick</dc:creator>
			<guid isPermaLink="false">83327@http://www.kriesi.at/support/</guid>
			<description>&#60;p&#62;Hi,&#60;/p&#62;
&#60;p&#62;Congratulations you're a natural. Hacking the code is the way most of us start and go from there. Thanks for putting up the process you followed and the end result. &#60;/p&#62;
&#60;p&#62;Thanks,&#60;/p&#62;
&#60;p&#62;Nick
&#60;/p&#62;</description>
		</item>
		<item>
			<title>colorit2 on "CORONA: Custom post excerpt is on dynamic template page with BLOG OVERVIEW 2x"</title>
			<link>http://www.kriesi.at/support/topic/corona-custom-post-excerpt-is-on-dynamic-template-page-with-blog-overview-2x#post-83247</link>
			<pubDate>Sat, 10 Nov 2012 19:36:07 +0000</pubDate>
			<dc:creator>colorit2</dc:creator>
			<guid isPermaLink="false">83247@http://www.kriesi.at/support/</guid>
			<description>&#60;p&#62;Hey guys, I'm happy ... I guess, I have more luck than brains ;-)) I only had an 8 hours training in PHP, but it seems I'm really cool in combining ;-) In a nutshell, I have combined the code at the very first post with try&#38;amp;error and now it looks like this:&#60;/p&#62;
&#60;pre&#62;&#60;code&#62;&#38;lt;?php
if(strpos($avia_config[&#38;#39;layout&#38;#39;], &#38;#39;medium_image sidebar&#38;#39;) !== false) echo $slider-&#38;gt;display_small(&#38;#39;blog&#38;#39;);
if(!is_single()){
the_excerpt(__(&#38;#39;Weiterlesen →&#38;#39;,&#38;#39;avia_framework&#38;#39;));&#38;lt;/p&#38;gt;
&#38;lt;p&#38;gt;echo &#38;#39;&#38;lt;a href=&#38;quot;&#38;#39;. get_permalink().&#38;#39;&#38;quot;&#38;gt;&#38;#39;.__(&#38;#39;Weiterlesen →&#38;#39;,&#38;#39;avia_framework&#38;#39;).&#38;#39;&#38;lt;/a&#38;gt;&#38;#39;;
}else{
echo &#38;#39;&#38;lt;div id=&#38;quot;textauszug&#38;quot;&#38;gt;&#38;#39;;
the_excerpt();
echo &#38;#39;&#38;lt;/div&#38;gt;&#38;#39;;
the_content(__(&#38;#39;Weiterlesen →&#38;#39;,&#38;#39;avia_framework&#38;#39;));
}&#60;/code&#62;&#60;/pre&#62;
&#60;p&#62;And now it seems to work:&#60;/p&#62;
&#60;p&#62;- at frontpage with template builder (using &#34;columns&#34;):&#60;br /&#62;
&#60;img src=&#34;http://i46.tinypic.com/152m81s.jpg&#34; /&#62;&#60;/p&#62;
&#60;p&#62;- at blog overview page with template builder (using &#34;blog&#34; element):&#60;br /&#62;
&#60;img src=&#34;http://i47.tinypic.com/30xivqh.jpg&#34; /&#62;&#60;/p&#62;
&#60;p&#62;and ... tatataaaa ... my styled custom excerpt in single post view:&#60;br /&#62;
&#60;img src=&#34;http://i46.tinypic.com/257ev6p.jpg&#34; /&#62;&#60;/p&#62;
&#60;p&#62;I guess you are now also happy, that the &#34;pain in the neck&#34; has found it out by herself ;-)&#60;br /&#62;
Thanks guys for your patience and helpfulness all the days! Have a nice weekend!
&#60;/p&#62;</description>
		</item>
		<item>
			<title>colorit2 on "CORONA: Custom post excerpt is on dynamic template page with BLOG OVERVIEW 2x"</title>
			<link>http://www.kriesi.at/support/topic/corona-custom-post-excerpt-is-on-dynamic-template-page-with-blog-overview-2x#post-83242</link>
			<pubDate>Sat, 10 Nov 2012 18:19:41 +0000</pubDate>
			<dc:creator>colorit2</dc:creator>
			<guid isPermaLink="false">83242@http://www.kriesi.at/support/</guid>
			<description>&#60;p&#62;thanks, Nick, but sorry, I understand not a single word of what you've written. Please note, I do not know any PHP - I always use your codes and copy/paste. So I don't know what is and where to put &#60;code&#62;$already_executed=1&#60;/code&#62;&#60;/p&#62;
&#60;p&#62;I have now changed my code with yours, and now my loop-index.php is this:&#60;/p&#62;
&#60;pre&#62;&#60;code&#62;&#38;lt;!-- if there is an individual excerpt, show it, otherwise do nothing --&#38;gt;
&#38;lt;?php if(!empty($post-&#38;gt;post_excerpt) &#38;amp;&#38;amp; !isset($already_executed))
{
echo &#38;#39;&#38;lt;div id=&#38;quot;textauszug&#38;quot;&#38;gt;&#38;#39;;
the_excerpt();
echo &#38;#39;&#38;lt;/div&#38;gt;&#38;#39;;
$already_executed = &#38;quot;yes&#38;quot;;
} ?&#38;gt;
&#38;lt;?php
if(strpos($avia_config[&#38;#39;layout&#38;#39;], &#38;#39;medium_image sidebar&#38;#39;) !== false) echo $slider-&#38;gt;display_small(&#38;#39;blog&#38;#39;);
if(!is_single()){
				the_excerpt(__(&#38;#39;Weiterlesen →&#38;#39;,&#38;#39;avia_framework&#38;#39;));
echo &#38;#39;&#38;lt;a class=&#38;quot;more-link&#38;quot; href=&#38;quot;&#38;#39;. get_permalink().&#38;#39;&#38;quot;&#38;gt;&#38;#39;.__(&#38;#39;Weiterlesen →&#38;#39;,&#38;#39;avia_framework&#38;#39;).&#38;#39;&#38;lt;/a&#38;gt;&#38;#39;;
}else{
the_content(__(&#38;#39;Weiterlesen →&#38;#39;,&#38;#39;avia_framework&#38;#39;));
}&#60;/code&#62;&#60;/pre&#62;
&#60;p&#62;This works only partly.&#60;/p&#62;
&#60;p&#62;&#60;strong&#62;a)&#60;/strong&#62; Frontpage (created with dynamic template by using the &#34;&#60;strong&#62;column&#60;/strong&#62;&#34; element in dynamic template builder to grab the blog posts &#60;strong&#62;= okay, showing only one time the custom/individual post excerpt&#60;/strong&#62;:&#60;/p&#62;
&#60;p&#62;&#60;img src=&#34;http://i50.tinypic.com/qsp3kp.jpg&#34; /&#62;&#60;/p&#62;
&#60;p&#62;&#60;strong&#62;b)&#60;/strong&#62; Another page (created with dynamic template by using the &#34;&#60;strong&#62;column&#60;/strong&#62;&#34; element in dynamic template builder to grab the blog posts &#60;strong&#62;= okay, showing only one time the custom/individual post excerpt&#60;/strong&#62;:&#60;/p&#62;
&#60;p&#62;&#60;img src=&#34;http://i47.tinypic.com/zob51d.jpg&#34; /&#62;&#60;/p&#62;
&#60;p&#62;&#60;strong&#62;c)&#60;/strong&#62; Blog OVERVIEW PAGE (created with dynamic template by using the &#34;&#60;strong&#62;blog&#60;/strong&#62;&#34; element in dynamic template builder to grab the blog posts &#60;strong&#62;= NOT okay, showing TWICE time the custom/individual post excerpt&#60;/strong&#62;:&#60;/p&#62;
&#60;p&#62;&#60;img src=&#34;http://i48.tinypic.com/2zhi0sn.jpg&#34; /&#62;&#60;/p&#62;
&#60;p&#62;Could it be, that the double custom excerpt results in the fact, that I use there the &#60;strong&#62;blog&#60;/strong&#62; element within the template builder?&#60;br /&#62;
In the other 2 cases, I use the &#34;column&#34; element within the template builder - and there all is okay (see the screenshot in my first post here)?&#60;/p&#62;
&#60;p&#62;Please look here for a screenshot with descriptions:&#60;/p&#62;
&#60;p&#62;&#60;a href=&#34;http://i47.tinypic.com/2rx8nds.jpg&#34; rel=&#34;nofollow&#34;&#62;http://i47.tinypic.com/2rx8nds.jpg&#60;/a&#62;&#60;/p&#62;
&#60;p&#62;------------------------------------------------------------&#60;/p&#62;
&#60;p&#62;&#60;strong&#62;[EDIT]&#60;/strong&#62;&#60;/p&#62;
&#60;p&#62;I've been testing around with the code in the loop-index.php, but I'm not sure what I'm doing ;-)&#60;br /&#62;
I have reduced  the relevant part of code to this now (found somewhere here in a forum from &#34;Dude&#34;):&#60;/p&#62;
&#60;pre&#62;&#60;code&#62;&#38;lt;?php
if(strpos($avia_config[&#38;#39;layout&#38;#39;], &#38;#39;medium_image sidebar&#38;#39;) !== false) echo $slider-&#38;gt;display_small(&#38;#39;blog&#38;#39;);
if(!is_single()){
the_excerpt(__(&#38;#39;Weiterlesen →&#38;#39;,&#38;#39;avia_framework&#38;#39;));

echo &#38;#39;&#38;lt;a class=&#38;quot;more-link&#38;quot; href=&#38;quot;&#38;#39;. get_permalink().&#38;#39;&#38;quot;&#38;gt;&#38;#39;.__(&#38;#39;Weiterlesen →&#38;#39;,&#38;#39;avia_framework&#38;#39;).&#38;#39;&#38;lt;/a&#38;gt;&#38;#39;;
}else{
the_content(__(&#38;#39;Weiterlesen →&#38;#39;,&#38;#39;avia_framework&#38;#39;));
}&#60;/code&#62;&#60;/pre&#62;
&#60;p&#62;This works fine on frontpage, on other pages grabbing posts with template builder, no matter if with &#34;blog&#34; or with &#34;column&#34; element within it.&#60;br /&#62;
The only thing that is not working with this code, is, that the single post does not show my custom excerpt, that I've written in the excerpt box below my text editor.&#60;br /&#62;
Maybe this is now only a small problem and easy to solve?
&#60;/p&#62;</description>
		</item>
		<item>
			<title>Nick on "CORONA: Custom post excerpt is on dynamic template page with BLOG OVERVIEW 2x"</title>
			<link>http://www.kriesi.at/support/topic/corona-custom-post-excerpt-is-on-dynamic-template-page-with-blog-overview-2x#post-83195</link>
			<pubDate>Sat, 10 Nov 2012 08:30:14 +0000</pubDate>
			<dc:creator>Nick</dc:creator>
			<guid isPermaLink="false">83195@http://www.kriesi.at/support/</guid>
			<description>&#60;p&#62;Hi,&#60;/p&#62;
&#60;p&#62;Off the top of my head, please make sure that your return 50; actually returns what you expect it to return and not just TRUE. Since return 0; will return FALSE and not the number 0. Since the code uses !== , you are are checking for both value and type.&#60;/p&#62;
&#60;p&#62;To make sure it executes only one time create a variable $already_executed=1; and use it to make sure that this section of code is only executed one time.&#60;br /&#62;
&#60;pre&#62;&#60;code&#62;&#38;lt;?php if(!empty($post-&#38;gt;post_excerpt) &#38;amp;&#38;amp; !isset($already_executed))
{
echo &#38;#39;&#38;lt;div id=&#38;quot;textauszug&#38;quot;&#38;gt;&#38;#39;;
the_excerpt();
echo &#38;#39;&#38;lt;/div&#38;gt;&#38;#39;;
$already_executed = &#38;quot;yes&#38;quot;;
} ?&#38;gt;&#60;/code&#62;&#60;/pre&#62;
&#60;p&#62;Thanks,&#60;/p&#62;
&#60;p&#62;Nick
&#60;/p&#62;</description>
		</item>
		<item>
			<title>colorit2 on "CORONA: Custom post excerpt is on dynamic template page with BLOG OVERVIEW 2x"</title>
			<link>http://www.kriesi.at/support/topic/corona-custom-post-excerpt-is-on-dynamic-template-page-with-blog-overview-2x#post-82943</link>
			<pubDate>Thu, 08 Nov 2012 22:07:34 +0000</pubDate>
			<dc:creator>colorit2</dc:creator>
			<guid isPermaLink="false">82943@http://www.kriesi.at/support/</guid>
			<description>&#60;p&#62;I just discovered, that not only at the &#60;strong&#62; blog overview page&#60;/strong&#62; (generated with dynamic template and the &#34;blog&#34; element) my custom/individual excerpt is double, but also on the single post view:&#60;/p&#62;
&#60;p&#62;&#60;img src=&#34;http://i45.tinypic.com/5n7rti.jpg&#34; /&#62;&#60;/p&#62;
&#60;p&#62;Maybe something with my custom excerpt code (see above) is wrong (= double)?
&#60;/p&#62;</description>
		</item>
		<item>
			<title>colorit2 on "CORONA: Custom post excerpt is on dynamic template page with BLOG OVERVIEW 2x"</title>
			<link>http://www.kriesi.at/support/topic/corona-custom-post-excerpt-is-on-dynamic-template-page-with-blog-overview-2x#post-82886</link>
			<pubDate>Thu, 08 Nov 2012 15:14:44 +0000</pubDate>
			<dc:creator>colorit2</dc:creator>
			<guid isPermaLink="false">82886@http://www.kriesi.at/support/</guid>
			<description>&#60;p&#62;Hi,&#60;/p&#62;
&#60;p&#62;I'm very sorry, but I need again your help concerning &#60;strong&#62;custom/individual&#60;/strong&#62; excerpts in CORONA - and I mean the individual, custom excerpt texts, that you can add in the field below the post editor field:&#60;/p&#62;
&#60;p&#62;&#60;img src=&#34;http://i47.tinypic.com/ji2hac.jpg&#34; /&#62;&#60;/p&#62;
&#60;p&#62;Currently I have in my &#60;a href=&#34;http://pastie.org/5346105&#34;&#62;functions.php this code&#60;/a&#62;, and in my &#60;strong&#62;index-loop.php&#60;/strong&#62; this code:&#60;/p&#62;
&#60;pre&#62;&#60;code&#62;&#38;lt;!-- if there is an individual excerpt, show it, otherwise do nothing --&#38;gt;
&#38;lt;?php if(!empty($post-&#38;gt;post_excerpt)) {
echo &#38;#39;&#38;lt;div id=&#38;quot;textauszug&#38;quot;&#38;gt;&#38;#39;;
the_excerpt();
echo &#38;#39;&#38;lt;/div&#38;gt;&#38;#39;;
} ?&#38;gt;

&#38;lt;?php
if(strpos($avia_config[&#38;#39;layout&#38;#39;], &#38;#39;medium_image sidebar&#38;#39;) !== false) echo $slider-&#38;gt;display_small(&#38;#39;blog&#38;#39;);
if(!is_single()){
				the_excerpt(__(&#38;#39;Read more  ?&#38;#39;,&#38;#39;avia_framework&#38;#39;));
echo &#38;#39;&#38;lt;a class=&#38;quot;more-link&#38;quot; href=&#38;quot;&#38;#39;. get_permalink().&#38;#39;&#38;quot;&#38;gt;&#38;#39;.__(&#38;#39;Read more  →&#38;#39;,&#38;#39;avia_framework&#38;#39;).&#38;#39;&#38;lt;/a&#38;gt;&#38;#39;;
}else{
the_content(__(&#38;#39;Read more  ?&#38;#39;,&#38;#39;avia_framework&#38;#39;));
}&#60;/code&#62;&#60;/pre&#62;
&#60;p&#62;This works fine on my frontpage (= created with a dynamic template), on other pages created with dynamic templates, where I grab 3 of the latest blog posts of a certain category for example - &#60;strong&#62;but using the &#34;columns&#34; element for grabbing the posts&#60;/strong&#62;:&#60;/p&#62;
&#60;p&#62;&#60;img src=&#34;http://i47.tinypic.com/2iiewb5.jpg&#34; /&#62;&#60;/p&#62;
&#60;p&#62;&#60;strong&#62;But:&#60;/strong&#62;&#60;/p&#62;
&#60;p&#62;I have created a dynamic template for a &#60;strong&#62;blog overview&#60;/strong&#62; page; it shows a page's slideshow and intro text and then - as another dynamic template element - the &#34;blog&#34; element, grabbing 3 of the latest blog posts:&#60;/p&#62;
&#60;p&#62;&#60;img src=&#34;http://i45.tinypic.com/2mfemid.jpg&#34; /&#62;&#60;/p&#62;
&#60;p&#62;&#60;strong&#62;live:&#60;/strong&#62;&#60;br /&#62;
&#60;img src=&#34;http://i46.tinypic.com/21chv5z.jpg&#34; /&#62;&#60;/p&#62;
&#60;p&#62;So far, so good. The only thing is, that &#60;strong&#62;there&#60;/strong&#62; - and only at this blog overview page (created with dynamic template) - my custom/individual excerpt is shown &#60;strong&#62;twice&#60;/strong&#62;.&#60;/p&#62;
&#60;p&#62;I have nearly no idea of PHP and most is done by try&#38;amp;error ;-)&#60;br /&#62;
So could you please help me out - I guess, something in the loop-index.php code is wrong, OR something needs to be added in another file, so that on such a dynamic template &#60;em&#62;using the element &#34;blog&#34;&#60;/em&#62;, the &#60;strong&#62;custom&#60;/strong&#62; excerpt is only shown &#60;strong&#62;once&#60;/strong&#62;, as it does on other normal pages using dynamic templates.&#60;/p&#62;
&#60;p&#62;But I need to mention, that on the frontpage and other content pages, where grab blog posts, I use within the template builder the &#34;columns&#34; element! And for this - wrong - blog overview page, I use within the template builder the element &#34;blog&#34;!&#60;/p&#62;
&#60;p&#62;Only at this page, the custom excerpt is shown twice:&#60;/p&#62;
&#60;p&#62;&#60;img src=&#34;http://i47.tinypic.com/j7t9o4.jpg&#34; /&#62;&#60;/p&#62;
&#60;p&#62;On the frontpage and on other content pages, for which I used dynamic templates with COLUMNS to grab the posts, the custom excerpt is shown right - once a time:&#60;br /&#62;
&#60;img src=&#34;http://i47.tinypic.com/2iiewb5.jpg&#34; /&#62;&#60;/p&#62;
&#60;p&#62;Thanks, appreciate your help again concerning this subject.
&#60;/p&#62;</description>
		</item>

	</channel>
</rss>
