-
AuthorPosts
-
December 9, 2015 at 2:44 am #549390
Hi,
I’ve already exposed this problem and it was resolved.
Unfortunately, it’s coming back: I got new inappropriate taxonomies in capitals (in blog layout and in all posts) close to categories.
Any help, pls !
http://www.newpointdeview.comDecember 9, 2015 at 8:34 pm #549955December 10, 2015 at 4:47 pm #550537Is there anybody ?
PleaseDecember 10, 2015 at 10:04 pm #550745Hey!
Please do not post multiple times into the post, because it goes to the end.
Can you let us know what it means it is back?
Have you done the modifications that the guys provided and they are not there?
Have you maybe updated and lost anything of those?Cheers!
BasilisDecember 11, 2015 at 4:04 pm #551153Hello,
in october I added this code adviced by Josue:
/*Non public taxonomies of Polylang plugin - correction*/ add_filter('avf_exclude_taxonomies', function($excluded_taxonomies) { return array_merge( get_taxonomies( array( 'public' => false ) ), array('post_tag','post_format') ); });
to the functions.php in Enfold-child.
The problem was resolved. Now I got it reappeared. If you go to any post or to my Blog page you’ll see in every class=”blog-categories minor-meta” a link “FRANÇAIS” linking to the home page (http://www.newpointdeview.com) which is no sense.
I’m using Polylang plugin. If it’s deactivated “FRANÇAIS” disappears.
So may be something changed after Enfold’s recent updates ? What code should I use now instead of Josue’s one ??- This reply was modified 9 years ago by Anton.
December 16, 2015 at 4:38 am #553443Hi!
Please replace it with the following code then go back to the blog page. Give us a screenshot of the result:
/*Non public taxonomies of Polylang plugin - correction*/ add_filter('avf_exclude_taxonomies', function($excluded_taxonomies) { $taxonomies = get_taxonomies(); var_dump($taxonomies); //$excluded_taxonomies = array_merge( array('language'), $excluded_taxonomies ); return $excluded_taxonomies; });
You should see a list of taxonomies including the taxonomy use by the polylang plugin. We’ll give you an update after.
Cheers!
IsmaelDecember 16, 2015 at 12:12 pm #553594Hi,
your code kills the site – 505 error. Look at this picture
And here is the picture of what I need to make disappear
December 18, 2015 at 6:05 am #554834Hey!4
Please copy the code directly from this forum, not from your email. The apostrophes are converted to something else, that’s why you get the error.
Best regards,
IsmaelDecember 19, 2015 at 7:59 pm #555436you were right! I copied the code from the forum and it got better.
Here’s the result of one of my blog categories and of a post
what’s next ?
December 22, 2015 at 8:12 am #556379Hey!
Thank you for the info. Please replace the code in the functions.php file with this:
/*Non public taxonomies of Polylang plugin - correction*/ add_filter('avf_exclude_taxonomies', function($excluded_taxonomies) { $excluded_taxonomies = array_merge( array('language', 'term_language', 'term_translations', 'post_translations'), $excluded_taxonomies ); return $excluded_taxonomies; });
Best regards,
IsmaelDecember 22, 2015 at 6:11 pm #556654Correct ! Thank you.
Resolved
-
AuthorPosts
- The topic ‘Non public taxonomies 2 (to be continued)’ is closed to new replies.