• Resolved Monique23

    (@monique23)


    Hi there!

    Please see a message on our development site: https://vdts.arti-sign.nl/nieuwe-website/.

    Under the title (Nieuwe website) you see a few items: date / replies / categories. As category you are supposed to see only “Over VDTS”. However that has been followed by “Nederlands” and “pll_55ffda2ed3d07”. Both (I have investigated) should come from the Polylang plugin. In the website code they are called tags, but they show up at categories in the message itself (so not in the categories overview in the right sidebar).

    I have switched of the other plugins used, but that doesn’t make a difference.
    I am using theme Enfold. If I activate theme twentyfifteen, I see only the base message, no extra categories.

    Is there a setting in Polylang I can use to switch off the ‘automatic creation’ of extra categories/tags?

    Thanks in advance & best regards,
    Monique

    https://www.ads-software.com/plugins/polylang/

Viewing 12 replies - 16 through 27 (of 27 total)
  • Anton

    (@anton-newpointdeviewcom)

    @monique23

    I got exactly the same problem with Enfold theme.
    How did you finaly manage it — in your child theme functions.php or did you add the plugin?
    And have you modified loop-index.php in native theme files or there’s a way doing it in child theme? I’d rather prefer having all modifications in child theme.

    Cheers,

    Thread Starter Monique23

    (@monique23)

    @anton,

    Sorry for my late reply. So busy doing stuff…

    I created a new php file and named that polylang-hide-categories.php. In that file I placed the code

    <?php
    /*
    Plugin name: Polylang-hide-categories
    */
    
    add_filter( 'avf_exclude_taxonomies', 'my_avf_exclude_taxonomies' );
    function my_avf_exclude_taxonomies( $taxonomies ) {
       	return array_merge( $taxonomies, get_taxonomies( array( 'public' => false ) ) );
    }

    I put the file in a folder with the same name (polylang-hide-categories) and uploaded this folder (including the file) in wordpress/wp-content/plugins. Than in wp admin I activated this plugin.

    That’s all ??

    I don’t know if it will help for you too. Please let me know.

    Good luck,
    Monique

    Anton

    (@anton-newpointdeviewcom)

    Hi,

    I’ve actually added following in my enfold-child/functions.php :

    /*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') );
    });

    And it worked correctly

    Thread Starter Monique23

    (@monique23)

    Did you got that solution from Chouby or the Enfold support?

    Anton

    (@anton-newpointdeviewcom)

    Enfold

    Thread Starter Monique23

    (@monique23)

    In the last month?

    Anton

    (@anton-newpointdeviewcom)

    48 hours after my first message in this thread

    Thread Starter Monique23

    (@monique23)

    Yes ok.

    When I asked Enfold the first time (approx. one month ago) they weren’t aware of the issue and didn’t know a solution straight away. Chouby gave the code to improve the theme to avoid these issues in future. They must have learned from that ?? They confirmed me they would take this into consideration with a future update of the theme.

    Btw: I am very happy with the support of the Enfold guys as much as I am happy with Chouby’s support ??

    Anton

    (@anton-newpointdeviewcom)

    I’m happy with both of these supports as well.
    But Enfold didn’t include this Polylang feature in its latest big theme update…

    Thread Starter Monique23

    (@monique23)

    I think the latest version must have been very close to be finished by the time they told me, so I assume it will be in the next update.

    Do you work a lot with Polylang?

    Have you seen my topic on the same page names in different languages (https://www.ads-software.com/support/topic/permalink-issue-with-pages-witht-he-same-name-for-different-languages)?

    Do you perhaps have a clue?

    Anton

    (@anton-newpointdeviewcom)

    Answered in your new topic

    Thread Starter Monique23

    (@monique23)

    Ok thanks!

Viewing 12 replies - 16 through 27 (of 27 total)
  • The topic ‘Polylang creates new tags in message’ is closed to new replies.