Category Archives: Snippet
Adding Additional Links to the Output from wp_list_pages
One common question in the WordPress IRC Channel is how to add external links, or links to content other than pages, to the output of wp_list_pages, usually not that exactly but that is what they mean. You can of course … Continue reading
WordPress One Liner to Remove Style Tags from Posts using [gallery] Shortcode
One of the biggest things that irritates me when using the [gallery] shortcode is that style tags are inserted into the post content. Why does this irritate me? Because this does not validate as XHTML 1.0. Luckily the fix is … Continue reading
WordPress One Liner to Customize Author Permalink
Several people have asked me recently how to customize the author permalink from being /author/admin to something like /profile/admin. I have created a simple one line piece of code that you can drop in your themes functions.php to achieve this. … Continue reading
Add a Class to Parent Categories Using wp_list_categories in WordPress
There was a quesiton in the WordPress IRC channel just a little while ago asking if there was a way to add a class to the li tag of parent categories generated by the wp_list_categories function. The first idea that … Continue reading
Adding a Link to the WordPress 2.7 Favorites Dropdown
There was some concern on the WP-Hackers list that the sidemenu action had been removed from WordPress 2.7. As the “sidemenu” (Settings, Plugins, Users) links no longer exist in 2.7 this action was removed. There is, however a suitable replacement … Continue reading