Wordpress Page Question

Status
Not open for further replies.

trigatch4

BuildAndEarn
Aug 23, 2006
2,558
79
0
East Coast
www.eurekadiary.com
I'm using a 3-column design, with 2 sidebars on the right side. I want to display one grouping of "pages" in each sidebar. I have a widgetized sidebar plugin but you can only assign one Page element and one Category element.

I suppose one way around this would be to write Pages and somehow "hide" them from being displayed. Then insert a Link element and link directly to the hidden page.

Catch my drift? I've looked for a plugin but can't find one so let me know!

Trig
 


you can do this by using the following, just keep in mind all page #'s must be in order, or assending order (eg; 5,15,38,39,55)

<?php wp_list_pages('exclude=1,3,5,7' ); ?>


<?php wp_list_pages('exclude=2,4,6,8' ); ?>
 
That's great, thanx jerx I'm going to use that unless...

Is there a way to exclude an entire category of pages? So I would make Page Random with ID #4 or something. Is there any command that would make all the SUB PAGES of Page with ID#4 hidden?

That would be a real easy one and done fix.

Lemme know
Thanx
 
yes you can specify the depth at which the page links will be displayed;

<?php wp_list_pages('depth=1&exclude=1,3,5,7' ); ?>

Would show only top level pages and exclude some top level pages you may not want to display wherever you place it;

I believe if you use the argument depth=2 it will display all child pages, or if you have child pages 3 levels deep you can use depth=3 to show all children 3 deep, that way you could show parent pages in one column then display all sub or child pages in another or whatever,

If your going to doing allot of Wordpress modifying Id go here Template Tags « WordPress Codex and study up on WP tags and the different ways they can be modified.
 
Alright so I tested this out and it didn't work for me. I replaced the following line:

<?php wp_list_pages('title_li='); ?>

With all the different options you presented. None of them seemed to work. Perhaps it's because I'm using widgetized sidebars? I edited this in the sidebar.php file...

Thanks
 
Status
Not open for further replies.