» Gabriel Harper's Blog
» Browsing posts tagged "wordpress"
wordpress
Posted 2012-10-25 in General
Wordpress has a handy little function called the_category() which outputs a link to the current post category in the loop. Unfortunately it adds a rel tag that breaks HTML5 validation. Here's a quick fix for your theme's functions.php.
To...
Posted 2012-10-24 in Web Design
When you use the Wordpress menu system and wp_nav_menu() function in your theme, menus will by default get wrapped in a <DIV> container. Since wp_nav_menu() displays list items, this ends up outputting invalid HTML. A <DIV> is not...
If you transferred your Wordpress site to a new domain or changed your current Wordpress URL, you'll probably find a bunch of references to the old site URL that need to be updated. Wordpress stores the site URL, links in images, and links in posts...
Sometimes you need to work outside the loop in Wordpress, and need access to the slug name of the current page or current post. How can you retrieve the page or post slug for the current page in Wordpress?
Just snag the slug name from the...
Wordpress supports custom URL rewrites for search engine friendly URLs, but the fact is they can be a real pain in the ass for WP plugin authors. As is evidenced by the plethora of confused posts out there desperately seeking help with...
Adding top-level menu items for a Wordpress plugin is pretty easy using the add_menu_page() function. Unfortunately you might have noticed there is often a conflict with the sorting and positioning of top-level admin menu items in Wordpress Admin....
If you've ever tried to fetch all the tags for a Wordpress post in a single SQL statement, you've realized that tags aren't simply stored in an extra field in the posts table.
Wordpress post tags are part of the taxonomy system and have a...
I'll admit this is one project I wasn't even aware of. The Wordpress blog just mentioned the sister project BuddyPress, which takes the WP architecture to a new level with a complete social networking platform.Perhaps complete isn't entirely...