<?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; Logic</title> <atom:link href="http://www.sandboxdev.com/tag/logic/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>Exclude Single Post in WordPress</title><link>http://www.sandboxdev.com/2008/01/16/exclude-single-post/</link> <comments>http://www.sandboxdev.com/2008/01/16/exclude-single-post/#comments</comments> <pubDate>Wed, 16 Jan 2008 18:37:54 +0000</pubDate> <dc:creator>Jennifer Zelazny</dc:creator> <category><![CDATA[HOWTOs]]></category> <category><![CDATA[WordPress]]></category> <category><![CDATA[WordPress Logic]]></category> <category><![CDATA[Code]]></category> <category><![CDATA[exclude]]></category> <category><![CDATA[Logic]]></category> <category><![CDATA[post]]></category> <guid
isPermaLink="false">http://www.sandboxdev.com/blog/wordpress/2008/01/16/exclude-single-post.php</guid> <description><![CDATA[If you would like to exclude one post from your blog, archive, search results or wherever you need to on your blog, you can do so by putting in a small piece of code within the particular WordPress loop: The following example will show all posts except for the post with the ID of 179: [...]]]></description> <content:encoded><![CDATA[<p>If you would like to exclude one post from your blog, archive, search results or wherever you need to on your blog, you can do so by putting in a small piece of code within the particular WordPress loop:</p><p>The following example will show all posts except for the post with the ID of 179:</p><pre class="brush: php; title: Custom Code; notranslate">
&lt;?php if ( $post-&gt;ID == '179' ) continue;?&gt;
</pre><p>This is something that I get a lot of requests for and is very useful in a number of situations.</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/01/16/exclude-single-post/feed/</wfw:commentRss> <slash:comments>49</slash:comments> </item> <item><title>Exclude Single Category in WordPress</title><link>http://www.sandboxdev.com/2008/01/15/exclude-single-category/</link> <comments>http://www.sandboxdev.com/2008/01/15/exclude-single-category/#comments</comments> <pubDate>Wed, 16 Jan 2008 02:35:16 +0000</pubDate> <dc:creator>Jennifer Zelazny</dc:creator> <category><![CDATA[HOWTOs]]></category> <category><![CDATA[WordPress]]></category> <category><![CDATA[WordPress Logic]]></category> <category><![CDATA[conditional]]></category> <category><![CDATA[exclude]]></category> <category><![CDATA[Logic]]></category> <guid
isPermaLink="false">http://www.sandboxdev.com/blog/wordpress/2008/01/15/exclude-single-category.php</guid> <description><![CDATA[If you ever need to exclude a single category from a WordPress page (archives, index, category page, etc) you can easily do so by using a little conditional tag code within the WordPress loop. The example below will skip over any post that is in the category with the ID of 35: This can be [...]]]></description> <content:encoded><![CDATA[<p>If you ever need to exclude a single category from a WordPress page (archives, index, category page, etc) you can easily do so by using a little <a
href="http://codex.wordpress.org/Conditional_Tags">conditional tag code</a> within the <a
href="http://codex.wordpress.org/The_Loop">WordPress loop</a>.</p><p>The example below will skip over any post that is in the category with the ID of 35:</p><pre class="brush: php; title: Custom Code; notranslate">
</pre><p>This can be helpful if you want to not show a particular category in your blog (if you have a category based site setup) &#8211; or if you want to hide some categories from your search results.</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/01/15/exclude-single-category/feed/</wfw:commentRss> <slash:comments>7</slash:comments> </item> <item><title>WordPress Logic: If Is Logged In</title><link>http://www.sandboxdev.com/2008/01/07/wordpress-logic-if-is-logged-in/</link> <comments>http://www.sandboxdev.com/2008/01/07/wordpress-logic-if-is-logged-in/#comments</comments> <pubDate>Tue, 08 Jan 2008 01:17:57 +0000</pubDate> <dc:creator>Jennifer Zelazny</dc:creator> <category><![CDATA[WordPress]]></category> <category><![CDATA[WordPress Logic]]></category> <category><![CDATA[Hints]]></category> <category><![CDATA[HOWTOs]]></category> <category><![CDATA[Logic]]></category> <category><![CDATA[Templates]]></category> <guid
isPermaLink="false">http://www.sandboxdev.com/blog/wordpress/2008/01/07/wordpress-logic-if-is-logged-in.php</guid> <description><![CDATA[There are several tidbits of code that I have collected over the past few years that make it easier and easier to turn a simple WordPress installation into a very functional content management system (CMS). There are many times when it would be nice to show logged in members certain bits of information (certain categories, [...]]]></description> <content:encoded><![CDATA[<p>There are several tidbits of code that I have collected over the past few years that make it easier and easier to turn a simple WordPress installation into a very functional content management system (CMS).  There are many times when it would be nice to show logged in members certain bits of information (certain categories, posts, or just a simple &#8220;Welcome back!&#8221;) and of course there is a simple way of doing this:<pre class="brush: php; title: Custom Code; notranslate"> </pre><p>That bit of code will allow you to do something like this which will allow you to show the logged in user&#8217;s preferred user name (selected in the User preferences), and then a list of member only pages (private page parent is page ID 20 &#8211; I am showing all sub pages of the members-only pages marked as private). If the user is not logged in, they will get a Welcome visitor! greeting :</p><pre class="brush: php; title: Custom Code; notranslate">
	&lt;p&gt;Welcome back &lt;/p&gt;
	&lt;p&gt;Here is a list of private pages only viewable by Members:&lt;/p&gt;
		&lt;ul&gt;
		&lt;/ul&gt;
	Welcome, visitor!
</pre><p>You can make it as simple as a change in greeting for members and non-members, or put in specific logic like I did with showing the pages.  The potential is limitless.</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/01/07/wordpress-logic-if-is-logged-in/feed/</wfw:commentRss> <slash:comments>4</slash:comments> </item> </channel> </rss>
