Hi Folks, I was hoping one of you could help me out because i have the feeling I have tried everything but i can't seem to get it working. I have this header code and I want to add my own links right after the original pages, could you let me know what code to use. <!-- Navigation --> <div id="nav" class="box"> <h3 class="noscreen">Navigation</h3> <ul> <li<?php if ( is_home() or is_archive() or is_single() or is_paged() or is_search() or (function_exists('is_tag') and is_tag()) ) { echo ' class="current_page_item"'; } ?>><a href="<?php echo get_option('home'); ?>">Home</a></li> <!-- Active page (highlighted) --> <?php wp_list_pages('title_li='); ?></ul> </div> <!-- /nav --> PHP: I thought it was this part, but I'm not a programmer or something close to that. If you need any more info please let me know. I hope to hear from you because I need my sleep
Try this: <!-- Navigation --> <div id="nav" class="box"> <h3 class="noscreen">Navigation</h3> <ul> <li<?php if ( is_home() or is_archive() or is_single() or is_paged() or is_search() or (function_exists('is_tag') and is_tag()) ) { echo ' class="current_page_item"'; } ?>><a href="<?php echo get_option('home'); ?>">Home</a></li> <!-- Active page (highlighted) --> <?php wp_list_pages('title_li='); ?> <li>Your Page Here</li></ul> </div> <!-- /nav --> PHP:
I almost know for sure that i did that, but it seems that i didnt Thank you!! I appreciate you quick assistance. Rep is given
Read wordpress documentation for the wp_list_pages function. There is a section for CSS Make your css file according to the CSS which is used in wp_list_pages function. URL : http://codex.wordpress.org/wp_list_pages I hope it helps Thanks