How to Display Properly Formatted Content From a $post Object in WordPress

How to Display Properly Formatted Content From a $post Object in WordPress

Occasionally, I’ll run into a situation where I need to call a post specifically using the get_post() function.  get_post() returns a Post object, with a number of member variables – the one that stores the actual content of the post being post_content. However, if you try just echoing $post->post_content, you’ll get completely unformatted text – which [...]

How To: Get an Overview of all Action and Filter Hooks

How To:  Get an Overview of all Action and Filter Hooks

Here’s a very cool little tidbit I found today (strangely enough, I found it in the bbpress codebase, while working on a bbpress plugin..)  Wordpress keeps track of which function/filter combinations are registered, along with which action hooks have been called at any point.  If you’re having trouble trying to figure out which action hook [...]

Creating User Friendly Custom Fields by Modifying the Post Page

Creating User Friendly Custom Fields by Modifying the Post Page

Ralph over at ForTheLose.org wrote up a great post on how to use custom fields in wordpress a few days ago, and I thought I’d expand on it with another feature that I use for clients quite often.  Custom fields are a great way to store extra post information, and they can really make for [...]