<?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; HOWTOs</title> <atom:link href="http://www.sandboxdev.com/tag/howtos/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>Include or Exclude Category for RSS Feed or Search</title><link>http://www.sandboxdev.com/2010/06/16/include-or-exclude-category-for-rss-feed-or-search/</link> <comments>http://www.sandboxdev.com/2010/06/16/include-or-exclude-category-for-rss-feed-or-search/#comments</comments> <pubDate>Wed, 16 Jun 2010 18:12:58 +0000</pubDate> <dc:creator>Jennifer Zelazny</dc:creator> <category><![CDATA[HOWTOs]]></category> <category><![CDATA[SDAC Blog]]></category> <category><![CDATA[WordPress]]></category> <category><![CDATA[exclude]]></category> <category><![CDATA[Include]]></category> <category><![CDATA[WordPress functions]]></category> <guid
isPermaLink="false">http://www.sandboxdev.com/?p=818</guid> <description><![CDATA[There are certain times when you need to include or exclude certain categories in the feed or search results. The easiest way to take care of this is to add the following to your functions.php file. The code above will exclude all posts that are in the category with ID 1 from your feed. If [...]]]></description> <content:encoded><![CDATA[<p>There are certain times when you need to include or exclude certain categories in the feed or search results. The easiest way to take care of this is to add the following to your functions.php file.</p><pre class="brush: php; title: Custom Code; notranslate">
function sdac_remove_from_feed( $query ) {
	if ( $query-&amp;gt;is_feed ) {
		$query-&amp;gt;set( 'cat',-1 );
	}
        return $query;
}
add_filter( 'pre_get_posts','sdac_remove_from_feed' );
</pre><p>The code above will exclude all posts that are in the category with ID 1 from your feed.  If you wanted to exclude everything from the search results &#8211; you would change one line:<br
/> $query-&gt;is_feed to $query-&gt;is_search</p><p>If you wanted to only show items from the category with ID 1 &#8211; you would just need to remove the &#8220;-&#8221; before the category number.</p><p><strong>Note:</strong> You can include/exclude items tagged, etc by changing the &#8216;cat&#8217; to whatever else you would normally use in the query.</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/2010/06/16/include-or-exclude-category-for-rss-feed-or-search/feed/</wfw:commentRss> <slash:comments>16</slash:comments> </item> <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>Locked Out of vBulletin?</title><link>http://www.sandboxdev.com/2008/12/01/locked-out-of-vbulletin/</link> <comments>http://www.sandboxdev.com/2008/12/01/locked-out-of-vbulletin/#comments</comments> <pubDate>Mon, 01 Dec 2008 18:27:04 +0000</pubDate> <dc:creator>Jennifer Zelazny</dc:creator> <category><![CDATA[vbulletin]]></category> <category><![CDATA[fixes]]></category> <category><![CDATA[HOWTOs]]></category> <category><![CDATA[tips]]></category> <category><![CDATA[vBulletin]]></category> <guid
isPermaLink="false">http://www.sandboxdev.com/blog/473/locked-out-of-vbulletin/</guid> <description><![CDATA[Recently I ran into an issue where I could not log into vBulletin (after changing the forum URL from (example.com/forums/ to forums.example.com). Lesson learned &#8211; you need to clear the cookie path in the admin before changing over to the new URL. If it is too late though, you can download a file called &#8220;tools.php&#8221; [...]]]></description> <content:encoded><![CDATA[<p>Recently I ran into an issue where I could not log into vBulletin (after changing the forum URL from (example.com/forums/ to forums.example.com).  Lesson learned &#8211; you  need to clear the cookie path in the admin before changing over to the new URL.</p><p>If it is too late though, you can download a file called &#8220;tools.php&#8221; that is in the do_not_upload file of the standard vBulletin folder.  Upload that to the admincp folder along with the &#8220;install&#8221; folder and then go to your forum&#8217;s URL /admincp/tools.php.  You will be prompted for your customer ID, and then you can reset your cookie settings.</p><p>Once you  are done, make sure to delete the file and install folder.  Login should once again work!</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/12/01/locked-out-of-vbulletin/feed/</wfw:commentRss> <slash:comments>13</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> <item><title>Search Specific Category in WordPress</title><link>http://www.sandboxdev.com/2007/10/10/search-specific-category-in-wordpress/</link> <comments>http://www.sandboxdev.com/2007/10/10/search-specific-category-in-wordpress/#comments</comments> <pubDate>Thu, 11 Oct 2007 01:49:33 +0000</pubDate> <dc:creator>Jennifer Zelazny</dc:creator> <category><![CDATA[HOWTOs]]></category> <category><![CDATA[WordPress]]></category> <category><![CDATA[WordPress Logic]]></category> <category><![CDATA[search]]></category> <category><![CDATA[WordPress categories]]></category> <category><![CDATA[WordPress customizations]]></category> <category><![CDATA[WordPress functions]]></category> <guid
isPermaLink="false">http://www.sandboxdev.com/2007/10/10/search-specific-category-in-wordpress.php</guid> <description><![CDATA[There are some times when you want to limit your search to a particular category, or perhaps multiple categories. This is relatively simple to do in WordPress by adding a hidden field to your search code. (See example below) You can see I added my hidden input field on the third line. When I add [...]]]></description> <content:encoded><![CDATA[<p>There are some times when you want to limit your search to a particular category, or perhaps multiple categories. This is relatively simple to do in WordPress by adding a hidden field to your search code. (See example below)</p><pre class="brush: php; title: Custom Code; notranslate">
&lt;form method=&quot;get&quot; id=&quot;search form&quot; action=&quot;/&quot;&gt;
&lt;div&gt;
&lt;input type=&quot;text&quot; value=&quot;&quot; name=&quot;s&quot; id=&quot;s&quot; /&gt;
&lt;input type=&quot;hidden&quot; value=&quot;22&quot; name=&quot;cat&quot; id=&quot;scat&quot; /&gt;
&lt;/div&gt;
&lt;/form&gt;
</pre><p>You can see I added my hidden input field on the third line.  When I add this in, it then adds onto the query used to search. Your search will go from something like http://www.sandboxdev.com/?s=WordPress to http://www.sandboxdev.com/?s=WordPress&amp;cat=22 and will only return posts in the category ID you choose.</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/2007/10/10/search-specific-category-in-wordpress/feed/</wfw:commentRss> <slash:comments>53</slash:comments> </item> <item><title>Updating From WordPress 2.2 to 2.3</title><link>http://www.sandboxdev.com/2007/09/21/updating-from-wordpress-22-to-23/</link> <comments>http://www.sandboxdev.com/2007/09/21/updating-from-wordpress-22-to-23/#comments</comments> <pubDate>Fri, 21 Sep 2007 20:54:57 +0000</pubDate> <dc:creator>Jennifer Zelazny</dc:creator> <category><![CDATA[HOWTOs]]></category> <category><![CDATA[WordPress]]></category> <category><![CDATA[WordPress Updates]]></category> <guid
isPermaLink="false">http://www.sandboxdev.com/2007/09/21/updating-from-wordpress-22-to-23.php</guid> <description><![CDATA[I have been using WordPress for almost 4 years and have collected a number of database tables, plugin specific directories, and miscellaneous junk along the way on a number of my sites. I wanted to take some time and really do some spring cleaning. After a few hours &#8211; I was very pleased with the [...]]]></description> <content:encoded><![CDATA[<p>I have been using WordPress for almost 4 years and have collected a number of database tables, plugin specific directories, and miscellaneous junk along the way on a number of my sites.  I wanted to take some time and really do some spring cleaning.  After a few hours &#8211; I was very pleased with the results and I wanted to share what worked for me.</p><p><strong>Here are the steps I recommend to really clean out a WordPress installation</strong>:</p><ol><li><strong>Make a backup of everything.</strong> You never know what you are going to get into &#8211; and a backup is very important incase things go bad.</li><li><strong>Make a test installation.</strong> I always use a test server when I know I am going to make several changes.  This way, jappler.com was not down while I was testing and cleaning up.  With your backup files, import your database on the test server, and grab the latest version of WordPress (<a
href="http://codex.wordpress.org/Installing/Updating_WordPress_with_Subversion">hopefully using subversion</a>)</li><li><strong>Remove old or unused plugin database tables.</strong> I then went into the WordPress database and removed (dropped) any tables that were created by any of my old or unused plugins that were still hanging around.</li><li><strong>Weed out old, unused plugins.</strong> I went through my plugins and deleted any old or unused plugins.  I had a few &#8220;I should really use this&#8221; plugins that were never used &#8211; and to tidy up &#8211; I deleted them before uploading them to the test server environment. Make sure to also remove any files/folders that old plugins might have used in the root folder and or wp-content.</li><li><strong>Move your theme over.</strong> Upload the theme file over to the test server.</li><li><strong>Move your uploads over/miscellaneous files.</strong> Upload the uploads folder (wp-content) so you will have all your old uploads.</li><li><strong>Update WordPress.</strong> Run through the upgrade process (/wp-admin/upgrade.php).</li><li><strong>Debug your plugins.</strong> Log in, create a test post to make sure you can write to the database without any errors.  I ran into a few problems with this, so I deactivated my plugins and activated them one by one.  I found I had a few plugins that were not compatible with WordPress 2.3, but there were updates available, so I updated my plugins and moved on.</li><li><strong>Import Tags (if you have them).</strong> I used <a
href="http://www.neato.co.nz/ultimate-tag-warrior/">Ultimate Tag Warrior</a> and WordPress has an import option for that (Manage &gt; Import) for that.</li><li><strong>Display your WordPress tags in your WordPress theme.</strong> Now that tagging is available within WordPress without any plugins, you can easily display tags by using:   You can also use a tag cloud (<a
href="http://codex.wordpress.org/Template_Tags/wp_tag_cloud">see Codex documentation</a>)</li><li><strong>Make another backup.</strong> I always make another backup of my sites when I am happy with the end result &#8211; just incase something happened &#8211; I would not lose all my hard work.</li><li><strong>Enjoy your updated installation.</strong> Hey &#8211; you did it!  A clean, lean, updated web site.  Nice work.  Now go and enjoy it!</li></ol> <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/2007/09/21/updating-from-wordpress-22-to-23/feed/</wfw:commentRss> <slash:comments>4</slash:comments> </item> <item><title>Remove Border Around Flash Objects In IE.</title><link>http://www.sandboxdev.com/2007/08/20/remove-border-around-flash-objects-in-ie/</link> <comments>http://www.sandboxdev.com/2007/08/20/remove-border-around-flash-objects-in-ie/#comments</comments> <pubDate>Mon, 20 Aug 2007 17:25:44 +0000</pubDate> <dc:creator>Jennifer Zelazny</dc:creator> <category><![CDATA[HOWTOs]]></category> <category><![CDATA[flash]]></category> <guid
isPermaLink="false">http://www.sandboxdev.com/howtos/2007/08/20/remove-border-around-flash-objects-in-ie.php</guid> <description><![CDATA[If you have a project where you are using and in IE, when you hover over the flash object and a border appears, there is a fix available: SWFObject: Javascript Flash Player detection and embed script. I have used it with some flash sites and it works great.]]></description> <content:encoded><![CDATA[<p>If you have a project where you are using<pre class="brush: xml; title: Custom Code; notranslate"> and </pre><p> and in IE, when you hover over the flash object and a border appears, there is a fix available: <a
href="http://blog.deconcept.com/swfobject/">SWFObject: Javascript Flash Player detection and embed script</a>.  I have used it with some flash sites and it works great.</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/2007/08/20/remove-border-around-flash-objects-in-ie/feed/</wfw:commentRss> <slash:comments>0</slash:comments> </item> <item><title>Highlighted Navigation with WordPress</title><link>http://www.sandboxdev.com/2007/07/17/highlighted-navigation-with-wordpress/</link> <comments>http://www.sandboxdev.com/2007/07/17/highlighted-navigation-with-wordpress/#comments</comments> <pubDate>Tue, 17 Jul 2007 20:20:28 +0000</pubDate> <dc:creator>Jennifer Zelazny</dc:creator> <category><![CDATA[CSS]]></category> <category><![CDATA[HOWTOs]]></category> <category><![CDATA[WordPress]]></category> <category><![CDATA[WordPress Logic]]></category> <guid
isPermaLink="false">http://www.sandboxdev.com/2007/07/17/highlighted-navigation-with-wordpress.php</guid> <description><![CDATA[Ever wonder how to automatically highlight your tabs or navigation depending on the category, page, or post you are on? Wonder no more! To make this work, there are three bits of code you will need: The header code to control the body ID (and to tell us what page we are on) The navigation [...]]]></description> <content:encoded><![CDATA[<p>Ever wonder how to automatically highlight your tabs or navigation depending on the category, page, or post you are on?  Wonder no more!  To make this work, there are three bits of code you will need:</p><ul><li>The header code to control the body ID (and to tell us what page we are on)</li><li>The navigation code</li><li>The CSS to control the highlight</li></ul><p>For this example, I will use this web site as an example.</p><p><strong>The header code</strong></p><pre class="brush: php; title: Custom Code; notranslate">
ID;
$parent = 1;
while($parent) {
$page_query = $wpdb-&amp;gt;get_row(&quot;SELECT post_name, post_parent FROM $wpdb-&amp;gt;posts WHERE ID = '$current_page'&quot;);
$parent = $current_page = $page_query-&amp;gt;post_parent;
if(!$parent)
$parent_name = $page_query-&amp;gt;post_name;
}
?&amp;gt;
&amp;lt;body id=&amp;quot;&quot;&amp;gt;
</pre><p><strong>The XHTML code (navigation)</strong></p><pre class="brush: xml; title: Custom Code; notranslate">
&lt;div&gt;
&lt;ul&gt;
&lt;li&gt;&lt;a href=&quot;/index.php&quot;&gt;Home&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href=&quot;/blog/&quot;&gt;SDAC Blog&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href=&quot;/web_solutions/&quot;&gt;Web Solutions&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href=&quot;/network_solutions/&quot;&gt;Network Solutions&lt;/a&gt;&lt;/li&gt;&lt;li&gt;&lt;a href=&quot;/user_interface_solutions/&quot;&gt;User Interface Solutions&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href=&quot;/custom_solutions/&quot;&gt;Custom Solutions&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href=&quot;/search/&quot;&gt;Search&lt;/a&gt;&lt;/li&gt;
&lt;/ul&gt;
&lt;/div&gt;
</pre><p><strong>The CSS code</strong></p><pre class="brush: css; title: Custom Code; notranslate">
#home #nav-home, #about_us #nav-home, #contactus #nav-home, #faqs #nav-home,
#disclaimer #nav-home, #search #nav-search,
#blog #nav-blog, #web_solutions #nav-websolutions, #network_solutions #nav-networksolutions,
#user_interface_solutions #nav-userinterfacesolutions,
#custom_solutions #nav-customsolutions, #tos #nav-home, #sitemap #nav-home {
	  background:url(&quot;images/tabs/active_tab_bg.gif&quot;) repeat-x;
      border-right:1px solid #676e78;
      }
#tabs li:hover, #tabs li:hover a {
	background: url(&quot;images/tabs/active_tab_bg.gif&quot;) repeat-x;
    color:#212933;
    }
</pre><p><strong>General information</strong><br
/> When you view the code for a page, you will notice that the header code will find out if the page viewed is infact a page.  If it is a page, it gets the page parent (I use parent and child pages in my web site organization).  The tabs are created with unique li IDs.  So that a combination of #home (the body ID) and the #nav-home (li ID) will show as a highlighted tab.  With this example, this case will only occur when we are on the home page because #home is a page (the home page) so the home tab will be highlighted.  When we click on &#8220;SDAC Blog&#8221;, the body ID will then be #blog, so now the #blog #nav-blog combination will force the &#8220;SDAC Blog&#8221; tab to be highlighted.  Take a look at the CSS to see where to define the &#8220;cases&#8221;.</p><p>Hopefully this took some of the mystery out of working with WordPress, navigation, and how to put everything together.</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/2007/07/17/highlighted-navigation-with-wordpress/feed/</wfw:commentRss> <slash:comments>9</slash:comments> </item> <item><title>Common WordPress Problems and Their Solutions</title><link>http://www.sandboxdev.com/2007/06/05/common-wordpress-problems-and-their-solutions/</link> <comments>http://www.sandboxdev.com/2007/06/05/common-wordpress-problems-and-their-solutions/#comments</comments> <pubDate>Wed, 06 Jun 2007 00:20:32 +0000</pubDate> <dc:creator>Jennifer Zelazny</dc:creator> <category><![CDATA[HOWTOs]]></category> <category><![CDATA[WordPress]]></category> <guid
isPermaLink="false">http://www.sandboxdev.com/howtos/2007/06/05/common-wordpress-problems-and-their-solutions.php</guid> <description><![CDATA[Ever since we have been listed on the WordPress Consultants list, I have received a number of phone calls from panicked blog/web site owners regarding WordPress errors. Since I have seen a trend in the past month, I thought I would document some of the problems and their solutions. Error establishing a database connection Solution: [...]]]></description> <content:encoded><![CDATA[<p>Ever since we have been listed on the <a
href="http://automattic.com/services/wordpress-consultants/">WordPress Consultants</a> list, I have received a number of phone calls from panicked blog/web site owners regarding WordPress errors.  Since I have seen a trend in the past month, I thought I would document some of the problems and their solutions.<br
/></p><h3>Error establishing a database connection</h3><p><strong>Solution:</strong> The most common solution is to look and make sure you have typed in the correct user name/password/database name in your wp-config.php file.  How can you check?  Log into cPanel or Plesk, or directly to mysqladmin.  Make sure that the user has the correct privileges to the database and that the password is correct.  If you are unsure about the password, you can always delete the user and re-add them (remember to give the newly created user the correct privileges).  If you are still having an issue, and you have a high traffic blog/web site, call your web host and see if you are maxing out the server connections &#8211; you/they might need to adjust their Apache/MySQL settings or you might need to start using <a
href="http://mnm.uib.es/gallir/wp-cache-2/">WP-Cache</a> to help control the connection issues.  More than likely &#8211; you just entered in your user name/password/database incorrectly. This is by far the most common issue I have seen so far.<br
/></p><h3>The default theme appears instead of your chosen custom theme when making CSS changes.</h3><p><strong>Solution:</strong> <a
href="http://wordpress.org/support/topic/112249">This is a known issue</a> and hopefully will be addressed soon.  If this happens, log into the WordPress Admin and choose your custom theme under &#8220;Presentation&#8221;.<br
/></p><h3>You are not able to edit your widgets&#8217; content using Safari</h3><p><strong>Solution:</strong> Grab the widget content that you want and drop it below or above another widget content box in the Widgets area in the WordPress Admin.  Once you move it, the edit option will appear.  Edit the content, and drag it back to it&#8217;s original location.</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/2007/06/05/common-wordpress-problems-and-their-solutions/feed/</wfw:commentRss> <slash:comments>3</slash:comments> </item> <item><title>My Page Order WordPress Plugin Modifcation</title><link>http://www.sandboxdev.com/2007/04/30/my-page-order-wordpress-plugin-modifcation/</link> <comments>http://www.sandboxdev.com/2007/04/30/my-page-order-wordpress-plugin-modifcation/#comments</comments> <pubDate>Mon, 30 Apr 2007 13:53:52 +0000</pubDate> <dc:creator>Jennifer Zelazny</dc:creator> <category><![CDATA[HOWTOs]]></category> <category><![CDATA[WordPress]]></category> <category><![CDATA[WordPress Plugins]]></category> <category><![CDATA[WordPress Troubleshooting]]></category> <guid
isPermaLink="false">http://www.sandboxdev.com/blog/2007/04/30/my-page-order-wordpress-plugin-modifcation.php</guid> <description><![CDATA[I have been working with a client recently that was using the My Page Order plugin for the WordPress CMS I set up. They had several &#8220;draft&#8221; pages they used for templates and did not want them to show up in the My Page Order Admin interface. After looking at the SQL code, I added [...]]]></description> <content:encoded><![CDATA[<p>I have been working with a client recently that was using the <a
href="http://geekyweekly.com/mypageorder">My Page Order</a> plugin for the WordPress CMS I set up.  They had several &#8220;draft&#8221; pages they used for templates and did not want them to show up in the My Page Order Admin interface.  After looking at the SQL code, I added in a piece that would only show published (live) pages.<br
/> To make the same change in your code, open up the plugin file (mypageorder.php), go to line 47 and change the following line:</p><pre class="brush: php; title: Custom Code; notranslate">$results=$wpdb-&amp;gt;get_results(&quot;SELECT * FROM $wpdb-&amp;gt;posts WHERE post_parent = $parentID and post_type = 'page' ORDER BY menu_order ASC&quot;);</pre><p>to:</p><pre class="brush: php; title: Custom Code; notranslate">$results=$wpdb-&amp;gt;get_results(&quot;SELECT * FROM $wpdb-&amp;gt;posts WHERE post_parent = $parentID and post_type = 'page' and post_status='publish' ORDER BY menu_order ASC&quot;);</pre><p>Now, only the pages you really want to order will appear in the menu.</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/2007/04/30/my-page-order-wordpress-plugin-modifcation/feed/</wfw:commentRss> <slash:comments>4</slash:comments> </item> </channel> </rss>
