Viewing 2 replies - 1 through 2 (of 2 total)
  • If you’re calling the pages with the wp_list_pages function, then you can fake WordPress into displaying with the pages.

    The code looks like this:
    <ul>

    <li class="<?php if (((is_home()) && !(is_paged())) or (is_archive()) or (is_single()) or (is_paged()) or (is_search())) { ?>current_page_item<?php } else { ?>page_item<?php } ?>"><a href="<?php echo get_settings('home'); ?>">Home</a></li>

    <?php wp_list_pages('sort_column=menu_order&depth=1&title_li='); ?>
    </ul>

    Using that, you get the first item on the list to be a ‘Home’ link, which would be followed by a list of your pages.

    Hopefully that explained it well enough…

    Thread Starter abovetheaether

    (@abovetheaether)

    Many thanks, this works perfectly!

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Adding “home” as a page’ is closed to new replies.