<?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>SDAC Inc &#124; Chicagoland Web Development &#187; Conditional Tags</title> <atom:link href="http://www.sandboxdev.com/tag/conditional-tags/feed/" rel="self" type="application/rss+xml" /><link>http://www.sandboxdev.com</link> <description>Just another Sandbox Development and Consulting Inc. Sites site</description> <lastBuildDate>Wed, 25 Jan 2012 07:57:33 +0000</lastBuildDate> <language>en</language> <sy:updatePeriod>hourly</sy:updatePeriod> <sy:updateFrequency>1</sy:updateFrequency> <generator>http://wordpress.org/?v=3.3.1</generator> <item><title>Conditionally Show Only On Home Page (Front Page)</title><link>http://www.sandboxdev.com/2009/01/16/conditionally-show-only-on-home-page-front-page/</link> <comments>http://www.sandboxdev.com/2009/01/16/conditionally-show-only-on-home-page-front-page/#comments</comments> <pubDate>Fri, 16 Jan 2009 20:59:00 +0000</pubDate> <dc:creator>Jennifer Zelazny</dc:creator> <category><![CDATA[HOWTOs]]></category> <category><![CDATA[SDAC Blog]]></category> <category><![CDATA[WordPress]]></category> <category><![CDATA[WordPress Logic]]></category> <category><![CDATA[WordPress Themes]]></category> <category><![CDATA[WordPress Troubleshooting]]></category> <category><![CDATA[Conditional Tags]]></category> <category><![CDATA[is_font_page]]></category> <guid
isPermaLink="false">http://www.sandboxdev.com/?p=521</guid> <description><![CDATA[There a are two functions that are used quite a bit to conditionally show content on the very front page (home page or page 1 of your blog). First &#8211; we had the function is_home(), but in WordPress version 2.5 &#8211; a new function was introduced: is_front_page(). You might think both would conditionally only display [...]]]></description> <content:encoded><![CDATA[<p>There a are two functions that are used quite a bit to conditionally show content on the very front page (home page or page 1 of your blog).  First &#8211; we had the function is_home(), but in WordPress version 2.5 &#8211; a new function was introduced: is_front_page().</p><p>You might think both would conditionally only display content on the home page (front page, page 1 of your blog) &#8211; but you actually need to use the following code to accomplish showing something <strong>ONLY</strong> on the front page of your paged blog:</p><pre class="brush: php; title: Custom Code; notranslate">
&lt;p&gt;Show this text only on the home page&lt;/p&gt;
</pre><p>So &#8211; if you want to easily show something on what I would consider the front page &#8211; use the code above to successfully achieve that.  (This is particularly helpful if you have ads that run speficically on the home page and others that are ROS (run of site).</p><p><strong>Further reading:</strong></p><ul><li><a
href="http://codex.wordpress.org/Conditional_Tags">documentation on conditional tags</a></li><li><a
href="http://trac.wordpress.org/ticket/6848">Bug Report on this issue</a></li></ul> <script type="text/javascript">sdac_post_slideshows.push({fx: 'fade', timeout: 0, speed: 1000, pause: 0,})</script>]]></content:encoded> <wfw:commentRss>http://www.sandboxdev.com/2009/01/16/conditionally-show-only-on-home-page-front-page/feed/</wfw:commentRss> <slash:comments>3</slash:comments> </item> <item><title>New Condition Tag: is_front_page() (WordPress 2.5)</title><link>http://www.sandboxdev.com/2008/03/07/new-condition-tag-is_front_page-wordpress-25/</link> <comments>http://www.sandboxdev.com/2008/03/07/new-condition-tag-is_front_page-wordpress-25/#comments</comments> <pubDate>Fri, 07 Mar 2008 18:51:54 +0000</pubDate> <dc:creator>Jennifer Zelazny</dc:creator> <category><![CDATA[SDAC Blog]]></category> <category><![CDATA[WordPress]]></category> <category><![CDATA[WordPress Themes]]></category> <category><![CDATA[Conditional Tags]]></category> <category><![CDATA[WordPress 2.5]]></category> <guid
isPermaLink="false">http://www.sandboxdev.com/?p=190</guid> <description><![CDATA[Great news for WordPress theme developers. WordPress 2.5 now offers a new conditional tag: is_front_page(). We have long lived with other options (is_page(&#8216;home&#8217;)) or other logic like that, but the is_front_page() simplifies defining the &#8220;home page&#8221; in our templates. Thanks guys!]]></description> <content:encoded><![CDATA[<p>Great news for WordPress theme developers. WordPress 2.5 now offers a new <a
href="http://codex.wordpress.org/Conditional_Tags">conditional tag: is_front_page()</a>.  We have long lived with other options (is_page(&#8216;home&#8217;)) or other logic like that, but the is_front_page() simplifies defining the &#8220;home page&#8221; in our templates.  Thanks guys!</p> <script type="text/javascript">sdac_post_slideshows.push({fx: 'fade', timeout: 0, speed: 1000, pause: 0,})</script>]]></content:encoded> <wfw:commentRss>http://www.sandboxdev.com/2008/03/07/new-condition-tag-is_front_page-wordpress-25/feed/</wfw:commentRss> <slash:comments>0</slash:comments> </item> </channel> </rss>
