Support » Fixing WordPress » Putting link to a page in the footer

  • Resolved BinkyM



    I’d like to add a page (“Terms of Use”) to my footer. I want it to look like all my other pages, so I don’t want to create an external HTML file. If I create a page, it’ll appear in my sidebar, and I don’t want that. (I’d rather it be small and out of the way instead of “in your face.”) In poking around here, I found a link to

    Is that what I’m looking for? I’m still noob-ish at WP, so I’m unsure. I’d be grateful for a “Yup, you found it, babe!” or “Nope; you’re barking up the wrong tree!” response. Thanks!


Viewing 8 replies - 1 through 8 (of 8 total)
  • You would use the exclude= parameter to in the template tag, wp_list_pages(), to exclude that Page in your sidebar.php.

    Just put a link in your footer that is the URL to that Page (the page you excluded above).

    Thanks a lot, MichaelH! That oughtta do the trick! It’s circuitous and convoluted (not your message, but rather the dox), and I’d never have found all that without your help. I appreciamate it a lot; smoochies!


    Hokay; this isn’t working for me. What am I doing wrong? I’ve tried:

    <?php wp_list_pages(‘exclude=18&title_li=<h2>Pages</h2>’ ); ?>

    and also:

    <?php wp_list_pages(‘title_li=<h2>Pages</h2>&exclude=18’ ); ?>

    in lsidebar.php, but “Terms of Service” is still showing up in my left navbar at

    I’ve read the dox repatedly, and can’t see what I’ve done wrong. It doesn’t look like rocket science. Am I doing something boneheaded?


    If you are using a widget to call your pages, have you changed the code in your widget to exclude 18 ?

    I think this may be the widget we are seeing and not your specific code.

    Hi, Shadow:

    I just grepped my plugins folder for “wp_list_pages” and came up empty, so that doesn’t seem to be the case, unless you’re suggesting one of my widgets is displaying my pages some other way besdies wp_list_pages. If that’s the case, how would I know? (sob!)

    FWIW, my plugins/widgets are:

    All in One SEO Pack
    Executable PHP widget
    FeedBurner FeedSmith
    I Love Social Bookmarking
    NoFollow Free
    Snap Shots™

    None fiddles with the display of my pages in my sidebar (that I’m aware of, anyway). Some add functionality to the display of my *posts*, but insofar as the pages being listed in the sidebar, they still look the way they did on Day One (save for my changes to my stylesheet).

    I think it’s time for a martini!


    Looking at your source:

    <li id="pages" class="widget widget_pages"> <h2 class="widgettitle">Essentials</h2>

    which would infer that a widget is being called, probably via your dynamic sidebar.

    Just have a quick look in your files and see if you can find a page widget in place. If so, you should be able to open it and change the page call to the same as your example above.

    Hi, shadow:

    I’ve been over *those* dumb things before, wondering where they came from: the former is deposited there by widgets.php, by the function register_sidebar, and the latter by functions.php. Those’re native to WP. Even though it’s not defined in my stylesheet, “widgettitle” apparently refers to h2s in my navbar. I guess if I were a template designer, I’d care about it.

    I don’tknow what the diffference is between a “registered” sidebar and one that’s “unregistered.”


    Hi, Shadow:

    I now know what register_sidebar does: any time a sidebar is created, the register_sidebar routine is called. makes it pretty clear. What it *doesn’t* make clear is what all the style crap is for when the styles aren’t defined anywhere!

    Hey! I just opened my “Pages” widget, and in there I found a “Pages to exclude” field, so I entered the ID of my “Terms of Service” page, and it be gone! Shazam! Here I was walking around the outside, banging my head on the glass, and *that’s* all I had to do? Sometimes, I make things too hard on myself. I really wish the WP dox weren’t a reeaally loooong, skinny column that’s so hard to read; maybe I’d spot this stuff myself before massive bloody tufts of hair are on my keyboard.


Viewing 8 replies - 1 through 8 (of 8 total)
  • The topic ‘Putting link to a page in the footer’ is closed to new replies.