Public Voice Network
- Show your latest Pics 32943294
- XBMC 33
- what happened? 2222
- Pic of the Day 6329863298
- F1 2012 1919
- Vid of the Day 1203312033
- the gif animation thread 1282812828
- Letterpress process video
- paper trail 88
- ATTN: Greedy Republicans 88
- New York 11
- Facebook IPO 156156
- Diablo III 8383
- Coda 2 3434
- Chick of the Day 1537615376
- Euro Crisis 66
- In Dallas for a month 1212
- shopped? 66
- Oh Amazon. 22
- blog 5626456264
- pdf portfolio 99
- I can see it in the pixel… 1919
- TransFatty @Brooklyn Bowl 1717
- wot dis font? 11
WP nav question 1111 Responses
Last post: 2 years, 7 months ago | Thread started: Oct 16, 09, 8:29 a.m.
- taxiguerrilla
Ah, ok, and you can't select objects with jQuery the same way?
Anyway, I can't find it now, but there is a way to obtain the list of pages / subpages using a while {} loop. I'll make a search on my HD, if I find it I'll write you the snippet.


- Dog-earOct 16, 09, 8:35 a.m. – Permalink
- taxiguerrilla
Didn't find it on my HD, but found something that could help you:
http://stackoverflow.com/questio…
I think this way you should be able to nest 2 or more loops.


- Dog-earOct 16, 09, 8:40 a.m. – Permalink
- acescence
a couple options, you can go into includes/post-template.php and edit the actual function. of course this will break if you upgrade. another option is to use a filter hook to process the output of wp_list_pages before it gets output to the template. another option is to copy the entire function and paste it in your template's functions.php file, then give it a unique name and edit the html it outputs.


- Dog-earOct 16, 09, 9:21 a.m. – Permalink
- bulletfactory
sometimes it's easier to do a hybrid of hardcode/dynamic.... example:
<?php if (is_page('About') || is_page('Contact')) { ?>
<ul class="subnav">
<li><a href="<?php echo bloginfo('url'); ?>/whatever.pdf" title="link">link</a></li>
</ul>
<?php } ?>hope that helps.... and was what you were asking.

- Dog-earOct 16, 09, 9:25 a.m. – Permalink
- jamble
Cheers folks,
I can't really hardcode the nav as the pages will be updated/added to over time so the nav will grow / change a bit and I don't want the maintenence job.
@Stugoo, I might be making a total balls of a simple job but I can't for the life of me get this (http://www.noupe.com/tutorial/d... dropdown nav to work because the .subnav class in the jQuery doesn't exist when WP generates the menu in the format in my original post.
Sorry if it's not hugely clear,I'm developing locally so I don't have a link to show at the moment.


- Dog-earOct 16, 09, 9:30 a.m. – Permalink
- bulletfactory
note: i only meant to hardcode the <ul class="subnav"> and let the list items inside it be dynamic.
it could grow as large as you want and be fine.

- Dog-earOct 16, 09, 9:33 a.m. – Permalink


