Thread Starter
Lethys
(@lethys)
Just a simple hack, it’s dirty but it works :
if($args['opentoselection'] && isset($_SERVER['REQUEST_URI'])){
// si les premiers caracteres sont '/es/' ou '/en/' (pour es et en)
if ( substr($_SERVER['REQUEST_URI'], 0, 4) == "/es/" or substr($_SERVER['REQUEST_URI'], 0, 4) == "/en/" )
{
$url = substr($_SERVER['REQUEST_URI'], 3);
}
else
{
$url = $_SERVER['REQUEST_URI'];
}
$tree .= $opt['openscript'] . wpdt_open_tree_to($url,'', $tree) . $opt['closescript'];
}
My website change with /es/ and /en/ that’s why it’s in the if.
And what is the solution? Because i have this problem with wp-dtree and WPML.
In french, my main language, it’s ok, but in english or spanish the plugin don’t open the tree…
So how do you fix it?