Author Archives: thecitizen

Add Description Field To Images In WordPress

When adding an image via the default WordPress image uploader, one option among many is the ability to define a description…. Interestingly enough, when embedding the image inside of a post, the description field unlike the caption field does not … Continue reading

Posted in Tips & Tricks, Wordpress | 5 Comments

How To Get Text From Textarea using jQuery With .val() method

Recently, was doing some form validation and needed to quickly grab the text content from a textarea input using jQuery. Tried using the “.text()” method to no avail. A little hunting and found out that what I was actually looking … Continue reading

Posted in jQuery, Tips & Tricks | 1 Comment

How To Highlight Current Category In WordPress Menu (wp_nav_menu) For Single Post Pages Using jQuery

UPDATE 10-11-2010: This information below is dated. The easiest way to accomplish this is to now just use built in classes outputted by WordPress (ie .current-post-parent). Please see this post for more information. The new menu manager in WordPress 3.0+ … Continue reading

Posted in jQuery, Tips & Tricks, Wordpress | 3 Comments

How To Add Custom Styles To The WordPress Editor Dropdown

I was searching for a simple way to add my own custom classes to the WordPress 3.0 editor styles/format dropdown (Paragraph, Address, H1, H2, H3 etc etc). This is a great easy way for clients who can’t / won’t go … Continue reading

Posted in Tips & Tricks, Wordpress | 13 Comments

How To Get Top Parent Page ID In WordPress

Often when working with pages in WordPress you’ll need to get the ID of the very top parent in a hierarchy of pages. This could be useful for many reasons, but I run into the need most often when I … Continue reading

Posted in Tips & Tricks, Wordpress | 8 Comments

Easy Breadcrumbs In WordPress

When creating the page section of a client site in WordPress, the need for breadcrumb navigation often arises.  There are probably multiple methods/plugins that can do this, but the one I use is “Fold Page List“. Fold Page List, is … Continue reading

Posted in Tips & Tricks | Leave a comment

Check If Current Page Has Any Subpages in WordPress

Really thought there would be a built-in function in WordPress to check for the existence of  any subpages while on a parent page, but apparently not. So here’s a quick dirty little function that will do just that. Drop this … Continue reading

Posted in Tips & Tricks | 2 Comments

Return The Post ID and Modify A Specific Entry Inside a WordPress Loop

I recently needed to slightly modify the output for a specific entry inside a category loop on a client’s WordPress install. Having a terrible memory, I seem to always forget functions for basic things like this, and this case was … Continue reading

Posted in Tips & Tricks | Leave a comment

Where’s The Index Page (Or Archive Page) for Custom Post Types In WordPress 3.0?

WordPress is probably my goto CMS platform (yes I said CMS) for client work in my day-to-day gig (full-time web designer/developer). Needless to say, since I use it so much, I’m stoked that the feature-packed WordPress 3.0 is upon us. Unfortunately, I’ve … Continue reading

Posted in Tips & Tricks | 2 Comments