Viewing 11 posts - 1 through 11 (of 11 total)
  • Author
    Posts
  • #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.com

    #549955

    .

    #550537

    Is there anybody ?
    Please

    #550745

    Hey!

    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!
    Basilis

    #551153

    Hello,

    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.
    #553443

    Hi!

    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!
    Ismael

    #553594

    Hi,

    your code kills the site – 505 error. Look at this picture

    And here is the picture of what I need to make disappear

    #554834

    Hey!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,
    Ismael

    #555436

    @Ismael,

    you 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 ?

    #556379

    Hey!

    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,
    Ismael

    #556654

    Correct ! Thank you.

    Resolved

Viewing 11 posts - 1 through 11 (of 11 total)
  • The topic ‘Non public taxonomies 2 (to be continued)’ is closed to new replies.