metrictensor
Forum Replies Created
-
Forum: Fixing WordPress
In reply to: Permalinks and duplicate page slugsUnique slugs have corrected the problem.
Thanks for all your help, twas much appreciated.
Michael.Forum: Fixing WordPress
In reply to: Permalinks and duplicate page slugsFrom https://trac.www.ads-software.com/ticket/1428:
——————-
Ticket #1428
Static pages break when two or more have the same title but different parents
——————-
Priority: normal Reporter: radgeek
Severity: normal Assigned to: anonymous
Component: General Status: new
Version: 1.5.2 Resolution:
Milestone: 1.6 Keywords:
——————-Does this mean the bug is due to be corrected in version 1.6? What are my options at the moment? Create unique page slugs?
Michael.
Forum: Fixing WordPress
In reply to: Permalinks and duplicate page slugsForum: Plugins
In reply to: Fold Page List updateHi Rob,
Thanks for the reply, I did a wee bit more searching and found what I was looking for, namely the piece of code below. It uses wp_list_pages and passes the current page id to the ‘child_of’ parameter:
<?php
if($wp_query->is_page && !is_home()) {
$lp_param = “”;
$lp_param = “title_li=&depth=1&child_of=” .
$wp_query->get_queried_object_id();
wp_list_pages($lp_param);
}
?>Thus giving me the navigation display I required.
Thanks to adsworth:
https://www.ads-software.com/support/topic/24230#post-138834Michael. 8)
Forum: Plugins
In reply to: Fold Page List updateIs it possible to modify this plugin so that on each click only the immediate sub pages are displayed, for example:
Top level nav:
– veg
– fruit
– meatUser clicks on fruit, next page displays sub nav
– apple
– grape
– pear
– bananaUser clicks on apple, next page displays sub nav
– red delicious
– cox
– granny smithI know this has been asked before:
https://www.ads-software.com/support/topic/31760#post-197608
and the solution is possibly to pass the current page id to the ‘child_of’ parameter in the argument list but I cant get it to work.
Any help would be much appreciated.
Michael.