Support » Plugin: Markup (JSON-LD) structured in » BreadcrumbList problem with multilingual sites

  • Resolved szmigieldesign



    it seems that this plugin in general works well with multilingual sites using WPML. However, there is one issue with BreadcrumbList schema type. Since the plugin is using home_url() to set $current_url in wp-structuring-short-code-breadcrumb.php, links get extra language subfolder on their path, leading to 404’s (ie. /en/en/ instead of /en/).

    The solution is very simple – changing home_url() to site_url() in wp-structuring-short-code-breadcrumb.php on line 84 sets correct path for URLs.

    This solution was originally proposed by @daweb here – However, the thread is closed to replies.

    Would you care to elaborate on this matter? I know that there is no mention about WPML compatibility with the plugin but it works well – I’ve only found this one issue.

Viewing 14 replies - 1 through 14 (of 14 total)
Viewing 14 replies - 1 through 14 (of 14 total)
  • The topic ‘BreadcrumbList problem with multilingual sites’ is closed to new replies.