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>’ ); ?>
<?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 http://lipstick-face.com/blog
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.
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
I Love Social Bookmarking
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.
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.”
I now know what register_sidebar does: any time a sidebar is created, the register_sidebar routine is called. http://automattic.com/code/widgets/api/ 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.
- The topic ‘Putting link to a page in the footer’ is closed to new replies.