• 2.8.3
    I have a top nav bar with WP Pages with a couple of ‘child pages’.

    I want to add a simple text links to the footer using :
    wp_list_pages.
    I have tried several permutaions of this and can’t get it to do what I want.
    I have hardcoded the links (parents and children) into the footer and all is good, but I would rather do this in a way that WP will keep it updated as new pages are added.

    This is how I want it displayed using wp_list_pages:
    Home | News | Get Involved(parent) | Meetings(child) | About

    I have the Css styled for this.

    What I was getting was the Parent pages
    then a space
    then the child pages.

    Any help ? Thanks?
    I have been reading the codex and forums for hours.

    ~bobbi

Viewing 2 replies - 1 through 2 (of 2 total)
  • I don’t think wp_list_pages can “flatten” the menu hierarchy for you.

    I could be wrong, but I spent way too much time with wp_list_pages last Spring before giving up and using a Menu plug-in, though I still use it for simple things.

    I think you are going to have to build your own menu using php.

    Thread Starter dragonsjaw

    (@dragonsjaw)

    Ok, I can handcode the menu no problem.. it’s getting WP to do it for me that is!
    so I wonder what is best practice to use here,
    either run
    wp_list_pages and get the actual ids of the pages ?
    or
    just use permalinks like this??
    Home |
    News |
    Contact Us |

    Is there a good reason of using one over the other?
    For updating by hand the permalinks make most sense to non-code prone folks.

    I was looking to use this with a simple php include statement, which of course I have since read that WP won’t let me do?? without a plugin, is that right?

    Oh well it lives in the footer.php so only 1 file to update there as well.

    I guess this ‘linear’ display is not possible with Categories & child Categories either? And I will have to do the mark up myself.

    Seems such a shame such a simple thing like this is neglected in WP functionality. Or am I missing something??

    thanks..

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Want simple text links in footer from wp_list_pages’ is closed to new replies.