Using the sliding doors hack within Wordpress
July 1, 2008
Let’s use a regular expression, by using the php preg_replace() function. We are going to get our pages (or categories) without displaying it, and passing it as a parameter to preg_replace(). The two remaining parameters will be, of course, our regular expression: The pattern we’re looking for, and this pattern’s replacement. To create this menu, paste the following code instead of the wp_list_pages() (or wp_list_categories()) function in the header.php of your Wordpress theme. To list your pages: <ul id="nav"> <li><a... [Read the full story]
Moving WordPress to Another Server
June 24, 2008
The flexibility of WordPress shines, making this not overly difficult to accomplish. If you aren’t changing your domain name, all you need to do is update your wp-config.php file and upload all of your files to their new server. If you are changing your domain name with your move, here is the information you’ll need: Backup your WordPress database. Download the complete WordPress install to your hard drive and identify the folder as your OLD installation. Login into your old blogs dashboard and update the Settings... [Read the full story]
Moving WordPress Within Your Website
June 23, 2008
There are times when you may wish to move your WordPress installation from one place on your server to another. This often happens when there is a change in the URL of your WordPress install, such as with blog redesigns, moving to a directory, etc. WordPress is actually very flexible, so it isn’t extremely difficult to do. Here is the information you will need: If moving to a new directory, create your new directory. If moving to your root directory, make sure your root directory is ready for the new files (including... [Read the full story]
Disable Wordpress Autosave
June 22, 2008
It turns out that disabling autosave completely isn’t that difficult. If you follow this, you must remember that Wordpress will no longer save while you write, meaning you can lose work much easier. To disable Wordpress autosave, you must access your website FTP and edit wp-admin/post.php and wp-admin/post-new.php and wp-admin/page-new.php and wp-admin/page.php. In post.php, edit line that says wp_enqueue_script('autosave'); by adding // to the beginning of the line. In post-new.php, page.php and page-new.php edit... [Read the full story]
Creating a Print Stylesheet in WordPress
June 20, 2008
What is a Print Stylesheet? A print stylesheet is an alternate stylesheet that should only be used when someone attempts to print a page off of your blog. How Does a Print Stylesheet Work? A print stylesheet is a separate stylesheet that will override any designated style.css code when someone attempts to print a page off of your website. If a print stylesheet is created correctly, people printing a webpage will not also print the unnecessary elements, such as the header, footer, and sidebars. How do I Make a Print Stylesheet? First... [Read the full story]



















