PDA

View Full Version : Lots of trouble adding links to a WP template



graphics
02-02-2010, 08:56 PM
I am working on a Wordpress site and am having problems with the links. Links on the left are fine but I can't seem to get all of them to show up and work above the journal. I'm trying to include only certain categories. Here is the code:

<div id="menu"><ul>
<li class="page_item"><a href="<?php echo get_option('home'); ?>">Home</a></li><?php wp_list_categories('sort_column=name&sort_order=asc&style=list&children=false&hierarchical=true&&include=3,6,9, 11,19&title_li=0'); ?>

<?php
$options = get_option('widget_pages');
$exclude = empty($options['exclude'] ) ? '' : $options['exclude'];
wp_list_pages('sort_column=menu_order&depth=1&title_li=&exclude=194,301'.$exclude);
wp_page_menu('sort_column=menu_order&depth=1&title_li=&exclude='.$exclude);
?>
</ul></div>

All of the specified links don't show up in the menu(above the journal). I'm not sure what to do. Here's the "<a href="journalbythesea.com">site</a>

Really need some help....thanks

Chris
02-03-2010, 06:23 AM
your function call for listing categories has include spelled as "inc lude" I don't know for sure if that is right or wrong, but I'm guessing it is wrong.

graphics
02-03-2010, 10:04 AM
Thanks for your reply, Chris. The space that ocured in the word include
(inc lude) doesn't appear in the real code...must have happened when I cut and pasted it into the message box. "<div id="menu"><ul>".

That's the piece of code that's been irritating me.

graphics