This took me ages to work out – I found most online tutroials were vague and/or referenced different files than what is found in my MoWeS installation. I have setup a local testing domain for CAMD: camd.loc I wanted to run a WP Multisite install with subdomains such as: members.camd.loc Anyway – this is what Full Article…
Search the Wiki
Add Tags and Categories to WordPress Pages
Some projects call for unconventional practices. Adding categories or tags to WordPress pages is probably one of the practices. Add this code as well and you will ensure that pages are also displayed in WordPress archives and post lists: Line 5 is kind of important. Here you can use Conditional Tags to prevent pages from being added Full Article…
Custom Post Type Archives & URLs
Templates and Heirarchy http://codex.wordpress.org/Template_Hierarchy Default WP archives for Custom Post Types Here’s one little gem for accessing default genearted archives if you are using WordPress 3.1 or higher: This should query for “all custom posts about the theme named taco”. Plugin: Custom Post Type Archives Enables pretty permalink custom post type archives that will support Full Article…
How to get your post thumbnail’s width and height
In Settings > Media, you are able to set only the height or width of the Thumbnail images and WordPress will resize them proportionally (i.e.: if you have a fixed height, then the widths will vary depending on your uploaded image dimension, and vice versa). Inside the loop, you can get a thumbnail’s width, height Full Article…
Mailchimp utilities for WordPress
Official Subscribe Widget MailChimp List Subscribe Form – This option is not to flexible you can only have your widgets subscribing users to one of your lists. Get it here. Unofficial Subscribe Widget MailChimp Widget – Adds a widget that allows your users to sign up for your MailChimp mailing list. You can have a Full Article…
List custom post types in dropdown
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…
How to Add a Message to the WordPress Login Screen
I needed to add a simple message to the WordPress login screen today. I wanted to add it just below the WordPress logo. Here is my final result: Here is the final result of my efforts While digging around in wp-login.php, I noticed that there is a filter for “message”. So, I simply added Full Article…