• Resolved Rick Patterson

    (@rick-patterson)


    I have made my static page choice but it shows up in the same heading space with other pages…”Home” is “Exploring Home Maintenance”

    http:thehandymantoolbox.com

    Any suggestions?

Viewing 8 replies - 1 through 8 (of 8 total)
  • A Home link can be displayed in several ways:
    1. It’s hardcoded in a theme’s header.php
    2. The template tag, wp_page_menu(), is used with the show_home=true argument.

    Thread Starter Rick Patterson

    (@rick-patterson)

    OK this info is good…

    now how can I hide the page name and just use the default, “home” in the navigation menu?

    wp_page_menu has the exclude=x argument you can use.

    Thread Starter Rick Patterson

    (@rick-patterson)

    pls help with this situation above…

    I wish to have the home page to be listed only…in my menu list..the page lised after the “home page” is actually the same as the next page listed in the menu. I wish to eliminate the duplicate page name in the menu and just have it listed as home. You can go see the example at http://thehandymantoolbox.com

    here is the code…..

    <?php $menupages = $wpdb->get_results(“SELECT ID, post_title FROM $wpdb->posts WHERE post_type = ‘page’ AND post_status = ‘publish’ AND post_parent = 0 ORDER BY menu_order ASC”);
    $menupagesnumber = count($menupages);
    $menupagescount = 1;
    foreach ($menupages as $menupage):?>

    Thread Starter Rick Patterson

    (@rick-patterson)

    if I use the ‘exclude=1’ argument the only page that shows in the menu list is home….

    how about this…

    if I make the second page “a members only” page, will the “home” page be hidden as well since they are the same?

    Didn’t test this but added this to return just page ids 4,7,10:
    AND ID IN ('4','7','10')

    so the get_results looks like:

    <?php $menupages = $wpdb->get_results("SELECT ID, post_title FROM $wpdb->posts WHERE post_type = 'page' AND post_status = 'publish' AND post_parent = 0 AND ID IN ('4','7','10') ORDER BY menu_order ASC");

    Thread Starter Rick Patterson

    (@rick-patterson)

    Hey Michael,
    Thanks for all your time on this query…

    The last fix did not work..ony yielded home and no other pages in menu.

    So I got a hunch to make the duplicate page a “privately published” page…and it worked…now it only shows up as the home page!

    Thanks again!

    Thread Starter Rick Patterson

    (@rick-patterson)

    Ciao

Viewing 8 replies - 1 through 8 (of 8 total)
  • The topic ‘Duplicate of page title and home’ is closed to new replies.