(Tips) New Page Menu Function & Sticky Posts in WordPress 2.7

WordpressRanch Newsletter:

Tips : New Page Menu Function & Sticky Posts in WordPress 2.7

If you are a theme author, there is a lot of work to do to prepare for WordPress 2.7.   The comments.php will need to be revamped to take advantage of the new features, but there are also a lot of other things which are changing as well.  These changes are for the better, but are kind of a hassle for the time being.

In case you missed it, both Justin Tadlock and Nathan Rice have been working hard at posting tutorials for theme authors to use to get their themes updated.  Justin Tadlock recently wrote a great post about the new page menu function in WordPress 2.7 and explains how to save some time when coding the wp_list_pages() function.   Here is the code Justin recommends:

<?php wp_page_menu('show_home=Home&menu_class=page-nav'); ?>

Gone are the days when you have to manually code a home button, which is now done automatically with this code.    This code will also wrap the menu in a page-nav div class, making styling your menu easy.

| Read more

Courtesy : Wphacks.com