• bpering

    (@bpering)


    Hi all,

    I am using the “gone fishing” theme. I have a PAGE heading in the sidebar with 5 linkable pages listed below the heading. I want to add a linkable HOME page to that menu, where all my posts would go. (meaning that clicking on “home” would take me to the latest post, and other posts below that one, etc).

    I have tried making a blank home page, and in Settings / General, sending posts to the newly created page, but a permalink “home” is automatically added to the URL, which takes the visitor to a blank page.

    If I could eliminate the permalink for that one “home” page, that would work, but I can’t figure out how to do that

    Here is the blog URL, if that will help: https://badcrediteliminated.com/

    Thanks for any help,

    Bob

Viewing 12 replies - 16 through 27 (of 27 total)
  • Thread Starter bpering

    (@bpering)

    Opps. Sorry. Did it again. I’m trying too hard.

    Here is the current code as you asked.

    <h2>Pages</h2>
    <?php wp_page_menu('show_home=1'); ?>
    matt987

    (@matt987)

    Anytime esmi, and just to let you know its happening again. bpering please make sure when writing code your putting it in backticks

    Thread Starter bpering

    (@bpering)

    I tried your latest and still no home page.

    <h2>Pages</h2>
    
    <?php
    
    wp_page_menu('show_home=1&sort_column=menu_order&title_li='); ?>
    Thread Starter bpering

    (@bpering)

    bpering please make sure when writing code your putting it in backticks

    What are backticks ?

    MichaelH

    (@michaelh)

    Backtick is the unshifted tilde key on my keyboard so either but a backtick in front and behind code or use the code quicktag at the top of each text box (use that quicktag at the beginning and end of code blocks).

    matt987

    (@matt987)

    Press the code button in the toolbar, that is a back tick. To put code in press the code button, write your code, and then press the code button again. ( wrap the code in back ticks )

    MichaelH

    (@michaelh)

    Also can you use this for your h2

    <h2>Pages with Home</h2>

    To make sure we are dealing with your sidebar.php and not something else like a Pages Widget.

    Thread Starter bpering

    (@bpering)

    Thanks for the info. Didn’t know that.

    But… I copied your code just the way you had it and I think I see the backticks you are talking about in yhe code.

    Here it is again

    <h2>Pages</h2>

    <?php

    wp_page_menu(‘show_home=1&sort_column=menu_order&title_li=’); ?>

    MichaelH

    (@michaelh)

    No, the backticks are NOT seen once you hit the post button, but do you see how the code I entered gets put in a ‘box’ vs the code you just entered?

    matt987

    (@matt987)

    You could just hard code it in if all else fails.

    <li><a href="https://badcrediteliminated.com/">Home</a></li>

    Thread Starter bpering

    (@bpering)

    Here’s something interesting. I have tried all your suggestions with no luck. Just now I deleted all the code that pertained to PAGES and saved that change. The Pages are still listed as before, even though the code is gone.

    Here is the Sidebar code now:

    <ul id=”sidebar”>
    <?php if ( !function_exists(‘dynamic_sidebar’)
    || !dynamic_sidebar() ) : ?>

    • <h2>Categories</h2>
      <?php wp_list_cats(); ?>
    • <h2>Archives</h2>
      <?php wp_get_archives(‘type=monthly’); ?>

    <?php endif; ?>

    MichaelH

    (@michaelh)

    Guessing that’s because you are using widgets.

    Consider downloading and installing Otto’s PHP Code Widget.

    Then put this in one of those widgets:

    <?php wp_page_menu('show_home=1'); ?>

Viewing 12 replies - 16 through 27 (of 27 total)
  • The topic ‘Need a HOME page added to page menu’ is closed to new replies.