jimbo
Forum Replies Created
-
Forum: Fixing WordPress
In reply to: Dyanmic sup page links on parentanyone know of a fix?
Forum: Fixing WordPress
In reply to: Dyanmic sup page links on parentOk, I’ve run into a bit of a problem with the above code. When I click onto one of the subpages, the subpage menu disappears from the sidebar. Is this an expected behaviour?
Forum: Fixing WordPress
In reply to: Dyanmic sup page links on parentThank you, miklb. This works perfectly well. It’s not completely dynamic, but it’s the solution I am looking for. Thanks again.
Forum: Fixing WordPress
In reply to: Dyanmic sup page links on parentOk, so it’s working when I put an ID in. eg.
<?php wp_list_pages(‘title_li=’ . the_title() . ‘&child_of=9’); ?>So how do I do it so that it works dynamically? Currently the sub pages of parent id 9 are showing in the sidebar for all pages, which is to be expected as I hard coded the id of 9 in.
Cheers.
Forum: Fixing WordPress
In reply to: Dyanmic sup page links on parentThanks for your reply, but I am a complete php hack. I understand that code, but for some reason it throws an error:
Parse error: parse error, unexpected ‘}’ which is just after &child_of=firstparentID bit.I have six parent pages and within those parents and they have anything between 0 and 3 sub pages.