Plugin Author
Chouby
(@chouby)
Hi,
This is not something I can reproduce. Please check with Twenty Sixteen and only Polylang (all other plugins deactivated).
Hi,
I’m so stupid, I testes with an other custom theme but not with the default WP theme.
With Twenty Sixteen all works nice.
Can I consider this problem as a bug in the theme I use (Point) ? Or to fix the problem can I rewritte a function ? If so which one ?
Thanks
Plugin Author
Chouby
(@chouby)
The conflicting line is the line 14 in inc/customizer.php.
$cats = strtr(wp_list_categories("&style=none&echo=0"),array('<br />'=>', '));
This line does not seem to be useful as it defines a global variable for which I did not found any usage.
-
This reply was modified 9 years, 3 months ago by
Chouby.
Super you confirm what I found.
I try to understand why calling the function wp_list_categories earlier breaks all the rewrites system.
Thanks to a debug I found this in the function get_extra_permastruct:
When I let the call in my theme, the variable
$this->extra_permastructs[$name] is null (with $name is ‘category’)
If I remove the call this variable exists and the key ‘struc’ is ‘/category/%category%’