cloutsca
Forum Replies Created
-
To fix this issue I simply commented line 17 of file of-taxonomy-walker.php
$this->defaults = $defaults;
And added following code below it
if( !is_array($defaults) ) { $this->defaults[] = $defaults; } else{ $this->defaults = $defaults; }
Result code:
// $this->defaults = $defaults; if( !is_array($defaults) ) { $this->defaults[] = $defaults; } else{ $this->defaults = $defaults; }
Ok now I got it… I think.
It has nothing to do with putting the $id or not in the is_category or is_tag function.
Just enclose the 2 ternary statements like this:
$req = (is_category() ? 'category' : (is_tag() ? 'post_tag' : ''));
I probably did this the first time to fix it but conclude to the wrong fix.
Wow ok… I don’t know what is going on now…
I am pretty sure that my proposed fix was working late last night! :O
Tested it again this morning and it seems that the problem occurs again.I am using twentyseventeen theme.
One other thing I noticed…
I first was using category and tag slugs composed of multiple tokens.
On french site/blog:
Post slug was: /publications/%postname%/
Category slug was: publications/categories
Tag slug was: publications/etiquettesOn english site/blog:
Post slug was: /posts/%postname%/
Category slug was: posts/categories
Tag slug was: posts/tagsEven with the change I made (detailed in a comment above), problem was still occuring. So I revert back to use a single token slug for category and tag.
On french site/blog:
Post slug was: /publications/%postname%/
Category slug was: categories-de-publication
Tag slug was: etiquettes-de-publicationOn english site/blog:
Post slug was: /posts/%postname%/
Category slug was: post-categories
Tag slug was: post-tagsProblem was then solved with the solution I proposed (detailed in a comment above). But something else should probably need a fix here.
Or maybe the conflict only occured because I was using the same slug start as for posts? I don’t know
- This reply was modified 6 years, 2 months ago by cloutsca.