<?xml version="1.0" encoding="UTF-8"?><!-- generator="bbPress" -->

<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
>

<channel>
<title>ThemeShaper Forums User Favorites: JE2KB</title>
<link>http://themeshaper.com/forums/</link>
<description>Help In Shaping WordPress Themes</description>
<language>en</language>
<pubDate>Thu, 23 May 2013 08:48:42 +0000</pubDate>

<item>
<title>JE2KB on "Target Non-Single Posts and Insert Div"</title>
<link>http://themeshaper.com/forums/topic/target-non-single-posts-and-insert-div#post-23195</link>
<pubDate>Fri, 23 Sep 2011 01:18:44 +0000</pubDate>
<dc:creator>JE2KB</dc:creator>
<guid isPermaLink="false">23195@http://themeshaper.com/forums/</guid>
<description>&#60;p&#62;Haha champion! Thanks very much, both of you :)
&#60;/p&#62;</description>
</item>
<item>
<title>helgatheviking on "Target Non-Single Posts and Insert Div"</title>
<link>http://themeshaper.com/forums/topic/target-non-single-posts-and-insert-div#post-23193</link>
<pubDate>Fri, 23 Sep 2011 01:06:29 +0000</pubDate>
<dc:creator>helgatheviking</dc:creator>
<guid isPermaLink="false">23193@http://themeshaper.com/forums/</guid>
<description>&#60;p&#62;oh crap- i didn't even notice that.  &#38;lt;facepalm&#38;gt;
&#60;/p&#62;</description>
</item>
<item>
<title>ScottNix on "Target Non-Single Posts and Insert Div"</title>
<link>http://themeshaper.com/forums/topic/target-non-single-posts-and-insert-div#post-23192</link>
<pubDate>Fri, 23 Sep 2011 01:02:58 +0000</pubDate>
<dc:creator>ScottNix</dc:creator>
<guid isPermaLink="false">23192@http://themeshaper.com/forums/</guid>
<description>&#60;p&#62;Warning: You can only use conditional query tags after the init action hook in WordPress. For themes, this means the conditional tag will never work properly if you are using it in the body of functions.php, i.e. outside of a function.&#60;/p&#62;
&#60;p&#62;From the codex, you are putting it outside of the function, put it within, this should work.&#60;br /&#62;
&#60;pre&#62;&#60;code&#62;function new_blog_top() {
	if (!is_single()) {
		echo &#38;quot;&#38;lt;div class=&#38;#39;page_blog&#38;#39;&#38;gt;&#38;quot;;
	}
}
add_action(&#38;#39;thematic_abovepost&#38;#39;,&#38;#39;new_blog_top&#38;#39;);

function new_blog_bottom() {
	if (!is_single()) {
		echo &#38;quot;&#38;lt;/div&#38;gt;&#38;quot;;
	}
}
add_action(&#38;#39;thematic_belowpost&#38;#39;,&#38;#39;new_blog_bottom&#38;#39;);&#60;/code&#62;&#60;/pre&#62;</description>
</item>
<item>
<title>JE2KB on "Target Non-Single Posts and Insert Div"</title>
<link>http://themeshaper.com/forums/topic/target-non-single-posts-and-insert-div#post-23188</link>
<pubDate>Fri, 23 Sep 2011 00:32:52 +0000</pubDate>
<dc:creator>JE2KB</dc:creator>
<guid isPermaLink="false">23188@http://themeshaper.com/forums/</guid>
<description>&#60;p&#62;Hey Helga,&#60;/p&#62;
&#60;p&#62;Just tried that too, had my hopes up, but it still doesn't work. With is_archive() it does not display the new Div for any of the posts, single or otherwise.&#60;/p&#62;
&#60;p&#62;Any other suggestions?
&#60;/p&#62;</description>
</item>
<item>
<title>helgatheviking on "Target Non-Single Posts and Insert Div"</title>
<link>http://themeshaper.com/forums/topic/target-non-single-posts-and-insert-div#post-23182</link>
<pubDate>Thu, 22 Sep 2011 18:34:10 +0000</pubDate>
<dc:creator>helgatheviking</dc:creator>
<guid isPermaLink="false">23182@http://themeshaper.com/forums/</guid>
<description>&#60;p&#62;have you tried is_archive() ?
&#60;/p&#62;</description>
</item>
<item>
<title>JE2KB on "Target Non-Single Posts and Insert Div"</title>
<link>http://themeshaper.com/forums/topic/target-non-single-posts-and-insert-div#post-23173</link>
<pubDate>Thu, 22 Sep 2011 03:12:59 +0000</pubDate>
<dc:creator>JE2KB</dc:creator>
<guid isPermaLink="false">23173@http://themeshaper.com/forums/</guid>
<description>&#60;p&#62;Hi Guys,&#60;/p&#62;
&#60;p&#62;Big fan of thematic, and have a small problem.&#60;/p&#62;
&#60;p&#62;I am trying to use functions.php to insert a new div element around my posts. I have it working BUT only want to target posts that aren't on a single page.&#60;/p&#62;
&#60;p&#62;This is what I have so far:&#60;br /&#62;
&#60;code&#62;&#60;br /&#62;
if (!is_single()) {&#60;br /&#62;
		function new_blog_top() {&#60;br /&#62;
			echo &#34;&#38;lt;div class='page_blog'&#38;gt;&#34;;&#60;br /&#62;
		}&#60;br /&#62;
		add_action('thematic_abovepost','new_blog_top');&#60;/p&#62;
&#60;p&#62;		function new_blog_bottom() {&#60;br /&#62;
			echo &#34;&#38;lt;/div&#38;gt;&#34;;&#60;br /&#62;
		}&#60;br /&#62;
		add_action('thematic_belowpost','new_blog_bottom');&#60;br /&#62;
	}&#60;br /&#62;
	else {&#60;br /&#62;
		break;&#60;br /&#62;
	}&#60;br /&#62;
&#60;/code&#62;&#60;/p&#62;
&#60;p&#62;I have also tried is_singular but it applies it to both posts on my blog page, and posts on their own single page. What am I doing wrong?
&#60;/p&#62;</description>
</item>

</channel>
</rss>
