-
Recent Posts
-

Recent Tweets
Follow @jonathansampsonRecent Comments
- Shidhin on Sometimes jQuery is (not) the Answer
- Jonathan Sampson on A Shorter Ternary Operator in PHP 5.3
- PHP on A Shorter Ternary Operator in PHP 5.3
- Nigel Berkeley on Todays WTF Moment with CodeIgniter, MySQL and PHP
- Jonathan Sampson on Quickly Adding Thumbnails to WordPress Archives
Archives
- February 2012 (1)
- October 2011 (1)
- June 2011 (2)
- May 2011 (1)
- January 2011 (6)
Tags
appendChild Autoload Bug business CodeIgniter Connection container_class CSS custom Database DOMDocument DOMElement DOMNode Error filters htaccess images interview JavaScript jeff atwood jQuery kohana menus menu_class mvc MySQL operators php posts prependChild Review stackoverflow styling ternary Version views wamp webdev windows Windows8 WordPress wp_nav_menu wp_page_menu
Tag Archives: DOMElement
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 appendChild, DOMDocument, DOMElement, DOMNode, prependChild, WordPress, wp_nav_menu
|
Leave a comment