Firstly declare the variable: (customcategory) Secondly the array for adding the post: and finally create the dropdrown from the get_post_types function: Taken from WordPress Stack Exchange.
Password protect a directory with Frontpage Extentions enabled
The conflict is that both programs want to write your .htaccess file. The solution is to leave your FrontPage extensions On, and then add the code needed to password protect a folder. Here is how to code the password protect: Use FTP or File Manager to navigate inside the folder you want to protect. Edit Full Article…
Custom Design for Maintenance & Upgrades
Start by creating a file in the root of your WordPress install (on level with wp-settings.php) called .maintenance This file should contain the following: (Note that this code allows admin users to login an access the blog/website.) If you want to specifiy a set time for the maintenance mode to display, you can replace the Full Article…
Remove Post Revisions through phpMyAdmin
Make sure you keep a good backup copy before proceeding with the amendments to your database. Also you can consider using a plugin to allow access to modify your db. Like this: WP-DBManager by Lester Chan. Be aware – you may need to change the name of the db tables for these commands to work Full Article…
Gravity Forms CSS: Targeting Specific Elements
This awesome css guide for Gravity Forms was originally posted here: http://www.rocketgenius.com/gravity-forms-css-targeting-specific-elements/ The team here at Rocketgenius is about to release Gravity Forms version 1.5 with several new features and enhancements. Along with these new features, we’ve introduced some new markup and form elements that I’m sure many people will want to style to match Full Article…
Get the url of the post thumbnail as a variable
One of the improvements in WordPress 2.9 is native support for thumbnail images on posts. The API is pretty good – although it assumes that you want to return the whole IMG tag. In my case I wanted to return the URL of the image (So I could wrap the actual thumbnail in a lightbox-style Full Article…
Browser detect script and conditional statements
This is a browser detect script by Chris Schuld. I have used this script on the RiAus mainsite developed with canvas. First of all- download the browser.php script and save to a directory within your website. Now you can include the script with a statement such as this: Here are the current set of identifiers: Full Article…
Move your WordPress blog to a new domain
A friend recently asked me how to move his blog, which is on /blog/ on his domain, to a new domain on it’s own. The steps are easy, but have to be taken in the right order to make sure you’re not annoying your users and the search engines: Put up a robots.txt on the new Full Article…
Remove WordPress Multisite data
Lots of articles are written across the web about how one can use WordPress Multisite capabilities to power several blogs from one installation. This feature comes from WPMU being merged into WP. Recently I was working with a client, which was stucked in between of the process of setting up and wanted me to complete Full Article…
WP Print with Custom Post Types and Permalinks
You can’t use the wp_print function with both custom post types and permalinks. You can replace the stand function with this: