-
AuthorPosts
-
September 23, 2015 at 8:27 pm #508068
Hi there,
I am using Polylang plugin for multilingual website. This plugin has their own types and taxanomies, which are shown in a message as soon as I publish ‘categories’. Obviously the theme displays non public taxonomies.
Can you let me know what I can do to ‘switch off’ the taxonomies which are not public?
Thanks & regards,
MoniqueSeptember 24, 2015 at 3:28 pm #508526Hi Monique!
we need to inspect the elements in question. Can you show us a link where we can see what you are talking about please?
Regards,
AndySeptember 24, 2015 at 4:31 pm #508592Hi Andy,
In the (child) theme I’ve now switched on the Blog Post Categorie in Blog Layout.
You can see an example at: http://vdts.net/nieuwe-website/.
You can see an image highlighting the two category elements caused by Polylang at: http://vdts.net/screen_print.jpg.Hope that will be of help!?
Regards,
MoniqueSeptember 25, 2015 at 11:29 pm #509304Hey!
unfortunately this non public taxonomies have no custom css class, so it won’t be easy for us to hide it. We recommend to use WPML plugin instead, as it is fully compatible with Enfold. Contact plugin’s author for support about it polylang plugin.
Cheers!
AndySeptember 29, 2015 at 12:44 pm #510705Hi Andy,
My client wanted an easy multi language plugin for their small website.
I contacted the plugin developer and they were able to help me with additional code. They also advised me how you could change the theme code in case you would be interested to definitely fix this issue.
You can replace:
$excluded_taxonomies = apply_filters('avf_exclude_taxonomies', array('post_tag','post_format'), get_post_type($the_id), $the_id);
by:
$excluded_taxonomies = array_merge( get_taxonomies( array( 'public' => false ) ), array('post_tag','post_format') ); $excluded_taxonomies = apply_filters('avf_exclude_taxonomies', $excluded_taxonomies, get_post_type($the_id), $the_id);
Just for your information :-)
You can close this topic.
Have a nice day,
MoniqueSeptember 29, 2015 at 7:46 pm #510959Hey!
glad you could fix it! I reported the solution to Kriesi. Thanks a lot!
Let us know in a new ticket if you have some more questions related to the theme. We are happy to assist you.Best regards,
Andy -
AuthorPosts
- The topic ‘Non public taxonomies’ is closed to new replies.