Category Archives: WordPress

prependChild on DOMElement in PHP, Sort of.

This evening I wanted to add a new LI onto a WordPress navigation programmatically. After considering a few different options, I decided I wanted to use PHP’s DOMDocument, and use this as an opportunity to more familiarize myself with its … Continue reading

Posted in PHP, WordPress | Tagged , , , , , , | Leave a comment

Unexpected Results While Styling WordPress Menus

Today I sat down to convert a static theme consisting of nothing more than HTML and CSS into a WordPress theme, complete with calls to functions like wp_nav_menu() for the construction of the menu’s. For this particular theme I began … Continue reading

Posted in Uncategorized, WordPress | Tagged , , , , , , | Leave a comment

Finding and Linking to Adjacent Posts with Same Custom Key/Value Pair in WordPress

Today I continued working on merging multiple custom post types back into regular posts, and differentiated them with a custom key/value pair. Some of these old post types would link to their adjacent siblings – videos to previous and next … Continue reading

Posted in WordPress | Tagged , , , | 2 Comments

Quickly Adding Thumbnails to WordPress Archives

Post thumbnails make archives look much more attractive in my personal opinion, yet they are not natively displayed in the otherwise-beautiful theme shipped with the latest version of WordPress, Twenty Ten. As is the case with most WordPress stuff, this … Continue reading

Posted in Uncategorized, WordPress | Tagged , , , , | 2 Comments