<?xml version="1.0" encoding="UTF-8"?><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"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	
	>
<channel>
	<title>
	Comments on: How to Use WordPress Conditional Tags	</title>
	<atom:link href="https://diythemes.com/thesis/wordpress-conditional-tags/feed/" rel="self" type="application/rss+xml" />
	<link>https://diythemes.com/thesis/wordpress-conditional-tags/</link>
	<description>Tips for Running a Successful, Profitable Website</description>
	<lastBuildDate>Wed, 28 Aug 2019 17:04:32 +0000</lastBuildDate>
	<sy:updatePeriod>
	hourly	</sy:updatePeriod>
	<sy:updateFrequency>
	1	</sy:updateFrequency>
	<generator>https://wordpress.org/?v=6.8.1</generator>
	<item>
		<title>
		By: Jason		</title>
		<link>https://diythemes.com/thesis/wordpress-conditional-tags/#comment-13419</link>

		<dc:creator><![CDATA[Jason]]></dc:creator>
		<pubDate>Sat, 31 Dec 2011 16:14:09 +0000</pubDate>
		<guid isPermaLink="false">https://diythemes.com/thesis/?p=1149#comment-13419</guid>

					<description><![CDATA[Very helpful. I looked at the wordpress codex and it does not appear to speak about the inclusion/exclusion conditions. 

I now the the &quot;!&quot; makes the difference

;)]]></description>
			<content:encoded><![CDATA[<p>Very helpful. I looked at the wordpress codex and it does not appear to speak about the inclusion/exclusion conditions. </p>
<p>I now the the &#8220;!&#8221; makes the difference</p>
<p>😉</p>
]]></content:encoded>
		
			</item>
		<item>
		<title>
		By: Dasha		</title>
		<link>https://diythemes.com/thesis/wordpress-conditional-tags/#comment-12619</link>

		<dc:creator><![CDATA[Dasha]]></dc:creator>
		<pubDate>Thu, 01 Dec 2011 09:49:29 +0000</pubDate>
		<guid isPermaLink="false">https://diythemes.com/thesis/?p=1149#comment-12619</guid>

					<description><![CDATA[Hi,

I&#039;m trying to do something similar for future posts:
- if post status=future show a message: &quot;please wait until this date&quot;
- if post status=publish show the title and content of this post.
Can anyone help? Much appreciated since I&#039;m a beginner.
Thanks!]]></description>
			<content:encoded><![CDATA[<p>Hi,</p>
<p>I&#8217;m trying to do something similar for future posts:<br />
&#8211; if post status=future show a message: &#8220;please wait until this date&#8221;<br />
&#8211; if post status=publish show the title and content of this post.<br />
Can anyone help? Much appreciated since I&#8217;m a beginner.<br />
Thanks!</p>
]]></content:encoded>
		
			</item>
		<item>
		<title>
		By: Mia		</title>
		<link>https://diythemes.com/thesis/wordpress-conditional-tags/#comment-12347</link>

		<dc:creator><![CDATA[Mia]]></dc:creator>
		<pubDate>Thu, 17 Nov 2011 17:33:02 +0000</pubDate>
		<guid isPermaLink="false">https://diythemes.com/thesis/?p=1149#comment-12347</guid>

					<description><![CDATA[Thank you so much I had an idea of conditional codec but i just didnt know how to use the correct syntax within header code and you show it here! Thank you again!]]></description>
			<content:encoded><![CDATA[<p>Thank you so much I had an idea of conditional codec but i just didnt know how to use the correct syntax within header code and you show it here! Thank you again!</p>
]]></content:encoded>
		
			</item>
		<item>
		<title>
		By: David		</title>
		<link>https://diythemes.com/thesis/wordpress-conditional-tags/#comment-10848</link>

		<dc:creator><![CDATA[David]]></dc:creator>
		<pubDate>Wed, 14 Sep 2011 23:42:55 +0000</pubDate>
		<guid isPermaLink="false">https://diythemes.com/thesis/?p=1149#comment-10848</guid>

					<description><![CDATA[Great tips Andrew!  The “if, then statements&quot; take me back to my old programming classes. 

Though all the programming has changed, that logical mindset still helps when customizing your blog.]]></description>
			<content:encoded><![CDATA[<p>Great tips Andrew!  The “if, then statements&#8221; take me back to my old programming classes. </p>
<p>Though all the programming has changed, that logical mindset still helps when customizing your blog.</p>
]]></content:encoded>
		
			</item>
		<item>
		<title>
		By: Rentier		</title>
		<link>https://diythemes.com/thesis/wordpress-conditional-tags/#comment-9908</link>

		<dc:creator><![CDATA[Rentier]]></dc:creator>
		<pubDate>Tue, 09 Aug 2011 21:15:30 +0000</pubDate>
		<guid isPermaLink="false">https://diythemes.com/thesis/?p=1149#comment-9908</guid>

					<description><![CDATA[Great article! 
Would you know how to move the previous and next post from bottom to top of the page, just above the current read post?
I&#039;ve searched for that info but I couldn&#039;t find
thanx]]></description>
			<content:encoded><![CDATA[<p>Great article!<br />
Would you know how to move the previous and next post from bottom to top of the page, just above the current read post?<br />
I&#8217;ve searched for that info but I couldn&#8217;t find<br />
thanx</p>
]]></content:encoded>
		
			</item>
		<item>
		<title>
		By: Etre Heureux		</title>
		<link>https://diythemes.com/thesis/wordpress-conditional-tags/#comment-9588</link>

		<dc:creator><![CDATA[Etre Heureux]]></dc:creator>
		<pubDate>Mon, 25 Jul 2011 17:38:07 +0000</pubDate>
		<guid isPermaLink="false">https://diythemes.com/thesis/?p=1149#comment-9588</guid>

					<description><![CDATA[I&#039;ll do that when I&#039;ll more at ease with wordpress. I&#039;m just beginning now
but thanx for the tip]]></description>
			<content:encoded><![CDATA[<p>I&#8217;ll do that when I&#8217;ll more at ease with wordpress. I&#8217;m just beginning now<br />
but thanx for the tip</p>
]]></content:encoded>
		
			</item>
		<item>
		<title>
		By: Norcross		</title>
		<link>https://diythemes.com/thesis/wordpress-conditional-tags/#comment-8585</link>

		<dc:creator><![CDATA[Norcross]]></dc:creator>
		<pubDate>Fri, 24 Jun 2011 18:01:57 +0000</pubDate>
		<guid isPermaLink="false">https://diythemes.com/thesis/?p=1149#comment-8585</guid>

					<description><![CDATA[In reply to &lt;a href=&quot;https://diythemes.com/thesis/wordpress-conditional-tags/#comment-8584&quot;&gt;david&lt;/a&gt;.

You&#039;re declaring the function twice. Remove the 2nd &lt;code&gt;add_action&lt;/code&gt;]]></description>
			<content:encoded><![CDATA[<p>In reply to <a href="https://diythemes.com/thesis/wordpress-conditional-tags/#comment-8584">david</a>.</p>
<p>You&#8217;re declaring the function twice. Remove the 2nd <code>add_action</code></p>
]]></content:encoded>
		
			</item>
		<item>
		<title>
		By: david		</title>
		<link>https://diythemes.com/thesis/wordpress-conditional-tags/#comment-8584</link>

		<dc:creator><![CDATA[david]]></dc:creator>
		<pubDate>Fri, 24 Jun 2011 17:40:48 +0000</pubDate>
		<guid isPermaLink="false">https://diythemes.com/thesis/?p=1149#comment-8584</guid>

					<description><![CDATA[Norcross -

Pulling my hair out as a real estate agent trying to code a site - but loving my 2 weeks with thesis so far!  would appreciate any help on....
I&#039;m using a rotating image widget (vslider) to appear above my content with a single line of code:

add_action(&#039;thesis_hook_before_content&#039;, &#039;vslider&#039;) ;

It works great - except it shows on every page - I only want it on the home page - I keep trying to add the conditional statement into the code but always get some type of error message - i&#039;ve tried lots of different combinations-ex
if i use:
function vslider() {
    if(is_home()) { ?&#062;
&#060;?php
    }
}
add_action(&#039;thesis_hook_before_content&#039;, &#039;vslider&#039;);

I get.....
Fatal error: Cannot redeclare vslider() (previously declared in /public_html/wp-content/plugins/vslider/vslider.php:867) in /public_html/wp-content/themes/thesis_181/custom/custom_functions.php on line 17

ANY help much appreciated!]]></description>
			<content:encoded><![CDATA[<p>Norcross &#8211;</p>
<p>Pulling my hair out as a real estate agent trying to code a site &#8211; but loving my 2 weeks with thesis so far!  would appreciate any help on&#8230;.<br />
I&#8217;m using a rotating image widget (vslider) to appear above my content with a single line of code:</p>
<p>add_action(&#8216;thesis_hook_before_content&#8217;, &#8216;vslider&#8217;) ;</p>
<p>It works great &#8211; except it shows on every page &#8211; I only want it on the home page &#8211; I keep trying to add the conditional statement into the code but always get some type of error message &#8211; i&#8217;ve tried lots of different combinations-ex<br />
if i use:<br />
function vslider() {<br />
    if(is_home()) { ?&gt;<br />
&lt;?php<br />
    }<br />
}<br />
add_action(&#039;thesis_hook_before_content&#039;, &#039;vslider&#039;);</p>
<p>I get&#8230;..<br />
Fatal error: Cannot redeclare vslider() (previously declared in /public_html/wp-content/plugins/vslider/vslider.php:867) in /public_html/wp-content/themes/thesis_181/custom/custom_functions.php on line 17</p>
<p>ANY help much appreciated!</p>
]]></content:encoded>
		
			</item>
		<item>
		<title>
		By: Regina		</title>
		<link>https://diythemes.com/thesis/wordpress-conditional-tags/#comment-8354</link>

		<dc:creator><![CDATA[Regina]]></dc:creator>
		<pubDate>Sat, 11 Jun 2011 02:06:00 +0000</pubDate>
		<guid isPermaLink="false">https://diythemes.com/thesis/?p=1149#comment-8354</guid>

					<description><![CDATA[Oh. My. Goodness.  Do you know how helpful this would have been if I found this a month ago.  I guess I shouldn&#039;t have paid for Thesis if I wasn&#039;t going to use its resources!  I should have looked here first.  Thank you so much, this will help me so much and save me a ton of frustration.  Keep up the good work!]]></description>
			<content:encoded><![CDATA[<p>Oh. My. Goodness.  Do you know how helpful this would have been if I found this a month ago.  I guess I shouldn&#8217;t have paid for Thesis if I wasn&#8217;t going to use its resources!  I should have looked here first.  Thank you so much, this will help me so much and save me a ton of frustration.  Keep up the good work!</p>
]]></content:encoded>
		
			</item>
		<item>
		<title>
		By: Rob @ Atlanta Real Estate		</title>
		<link>https://diythemes.com/thesis/wordpress-conditional-tags/#comment-8274</link>

		<dc:creator><![CDATA[Rob @ Atlanta Real Estate]]></dc:creator>
		<pubDate>Sun, 05 Jun 2011 14:39:02 +0000</pubDate>
		<guid isPermaLink="false">https://diythemes.com/thesis/?p=1149#comment-8274</guid>

					<description><![CDATA[Would if I wanted to add the Google +1 button to all my pages AND posts? Here&#039;s the code for adding it to all the posts:

function google_plus_one_output() {
if (is_single()) { ?&#062;



&#060;?php }
}
add_action(&#039;thesis_hook_before_post&#039;, &#039;google_plus_one_output&#039;);

THANKS!!]]></description>
			<content:encoded><![CDATA[<p>Would if I wanted to add the Google +1 button to all my pages AND posts? Here&#8217;s the code for adding it to all the posts:</p>
<p>function google_plus_one_output() {<br />
if (is_single()) { ?&gt;</p>
<p>&lt;?php }<br />
}<br />
add_action(&#039;thesis_hook_before_post&#039;, &#039;google_plus_one_output&#039;);</p>
<p>THANKS!!</p>
]]></content:encoded>
		
			</item>
	</channel>
</rss>
