Here’s how to query custom post types with WordPress 3 and better.
Normally users create new posts from the Posts Edit screen in the WordPress Admin, but you can also publish posts from the functions.php file.
By default WordPress enables users to switch themes while working in the Admin area. Sometimes a user might screw this up and accidentally activate the wrong theme.
Normally the template tags used for navigating posts and pages must be included inside of the WordPress loop. This is great but there may be times when you need to display the navigation links outside of the loop.
Normally WordPress displays dates using boring old numbers. How much more fun would it be to display dates and times using human-readable language to make them all user-friendly and swell.
To display an auto-incrementing number for each post, add the following snippet to your theme’s functions.php file:
If you’re encountering restrictive upload limits in WordPress, here is a simple fix:
Quick snippet for removing or disabling WordPress sub-menus:
Delivering a clean custom theme involves removing components or features that will not be used. Here’s how to disable WordPress default widgets:
If you want to change certain aspects of your theme, you should get familar with its different files.
Here is a quick guide for troubleshooting why WordPress permalinks might not be working.
Just a collection of miscellaneous & random WordPress snippets for your enjoyment.