WordPress.org

Ready to get started?Download WordPress

Forums

Breadcrumb NavXT
Compatibility request with WPML (7 posts)

  1. greencode
    Member
    Posted 2 years ago #

    Hi.

    Firstly I love your plugin - by far the best breadcrumb trail plugin for WP. I am, however, developing a site with multilingual functionality and for that I'm using WPML.

    There's a minor issue with how the categories display in the breadcrumb when a language with the same translation is displayed though. That is when the same category name exists in two or more languages then WPML has to add a @es (language code) suffix to the category to create a unique name for WordPress. On their own breadcrumb trail plugin (which isn't that good as it doesn't have many options compared to yours) the suffix is filtered from the front end but on the NavXT plugin it remains in place.

    I added a post to the WPML forum here http://wpml.org/forums/topic/it-es-etc-etc-in-categories/#post-64474 and they mentioned that it would be good if you could get in touch with them to help resolve the issue. Here's what they said…

    " If you'd like us to work on this with the author of NavXT, please check if they're willing to spend some time with us. The changes on their side will be pretty trivial. They'll just need to change the function that displays taxonomy to the standard WordPress API call and everything will work great with WPML. If you contact them and they're interested, we'll help them make this change very quickly. We cannot take responsibility to their plugin, so we need their cooperation in doing this change."

    "You can ask them to go here:
    http://wpml.org/documentation/theme-compatibility/go-global-program/

    We'll create an account for the other plugin developer and work together to make things compatible."

    Is there any chance you would be able to do this?

    I realise this is a big ask but from the sounds of the WPML developers it wouldn't take too much to make things compatible and then your plugin would be really useful for those developing multilingual websites.

    Thanks in advance for any help you can give on this issue.

    http://wordpress.org/extend/plugins/breadcrumb-navxt/

  2. John Havlik
    Member
    Plugin Author

    Posted 2 years ago #

    I signed up on their site. Though, I'm not sure what they're talking about in regards to "They'll just need to change the function that displays taxonomy to the standard WordPress API call". I already use the very standard get_term() API call, not sure how you can get more standard than that. For categories, get_category() is just a wrapper for get_term(). It'll be interesting to see what they have to say.

  3. greencode
    Member
    Posted 2 years ago #

    Thanks. I really appreciate you taking the time to get in touch with them.

  4. John Havlik
    Member
    Plugin Author

    Posted 2 years ago #

    You're probably not going to love this but there is a stop gate solution available. It will require a tiny extension plugin to Breadcrumb NavXT. I've passed it off on the WPML guys for some feedback. For it to work you will need to be using the GitHub 'master' version of Breadcrumb NavXT, see: https://github.com/mtekk/Breadcrumb-NavXT

  5. greencode
    Member
    Posted 2 years ago #

    Apologies for not getting back to you regarding this. Been up to my neck in work at the minute. I'll take a look this weekend if that's okay.

  6. John Havlik
    Member
    Plugin Author

    Posted 2 years ago #

    The additional code you'll need is located in this plugin file: https://github.com/mtekk/Breadcrumb-NavXT-Extensions/blob/master/breadcrumb_navxt_multidim.php

  7. Aiwe
    Member
    Posted 1 year ago #

    I just coined filter in my finctions.php wich removes @es from the titles in breadcrumbs:

    add_filter('bcn_breadcrumb_title','navx_filter_fix');
    function navx_filter_fix($string){
    $string = str_replace('@'.ICL_LANGUAGE_CODE, '', $string);
    return $string;
    }

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic

Tags