Did you try to get in touch with the plugin author? I never used that plugin so have no idea how it works.
I think you are trying to do the same thing that I am trying to do.
I am only halfway there, but I don’t think the Fold_Page plugin is what you really want. I could be wrong, but I’m hesitant to load in code if existing tags will do.
“Initally” or “in the main site” where you just want to see the top-level pages you edit your header template file so that you pass some parameters to wp_list_pages … depth=1 will display just the top level of your pages structure.
Then, when a visitor clicks through to reviews, there would ideally be a page with a short introduction and a list of subpages (Canon, Nikon, Holga). This is where I’m stuck. I’ve found this php string in someone else’s post, but I haven’t figured out how to use it:
< ?php wp_list_pages('depth=2&sort_column=post_date&title_li=&child_of='. $parent_id); ?>
some links i’ve found valuable:
http://codex.ww.wp.xz.cn/Template_Tags/wp_list_pages
http://codex.ww.wp.xz.cn/Template_Tags
With help from Rob the Plugin writer I have now got this working (Thanks Bob). I have included how its done to help other people in the same boat.
QUOTE
‘Assuming that you have activated the plugin, you still need
to use it. If you want to keep page links in the sidebar,
where they are currently located, then you need to make one edit to your sidebar.php file… the one in the folder of your active theme.
Fine this line, approximately just over half-way down.
<?php wp_list_pages(‘title_li=<h2>Pages</h2>’ ); ?>
and change it to call the fold page list plugin… thus:
<?php wswwpx_fold_page_list(‘title_li=<h2>Pages</h2>’ ); ?>
(that should all be on a single line, but email may make it wrap around)
Save the changes and “That’s it”.’
END QUOTE
My next step is to do the following – If I manage it I will post my method:
Just one more question. Is it possible to make the root page just a navigation button rather than a page.
At the moment I have
Pages
Tutorials
* Digital Black and White Printing
When I click on Tutorials it opens the tree so I see * Digital Black and White Printing But it also opens a page called Tutorials.
Would it be possible when I press Tutorials for it to just open the drop down menu but stay on the same (opening) page?
Just a quick post to Thank Rob again, it is all working now – it would appear that my second request is not possible at this time.
Cheers
Martin
Monday 10th April 2006
I know this is an old post, and Im sorry for bringing it up, but I cant get this to work for me :o( I’ve tried so
much, Im new at wordpress and the php coding, but Ive tried all the lines and stuff and I either get:
“Fatal error: Call to undefined function: wswwpx_fold_page_list() in wp-content/themes/default/sidebar.php on line 41”
when i used (< ?php wswwpx_fold_page_list(‘title_li=<h2>Pages</h2>’ ); ?>)
or the “page” ‘menu ‘ disappears all together O_o
when i use (< ?php wp_list_pages(‘depth=2&sort_column=post_date&title_li=&child_of=’. $parent_id); ?>
so any help would be great 😀
THX
“Fatal error: Call to undefined function: wswwpx_fold_page_list()“
Did you install the plugin this function is from?
http://www.webspaceworks.com/resources/cat/wp-plugins/30/