Compatibility WPML & dsIDXpress IDX Plugin
-
Could you please provide a solution for the plugin to work with WPML?
It’s a very common plugin and the most used for multilang sites.
Users that bought an account with you, have been asking you for years now, to work together with the WPML team on intercompatibility.
The Team at WPML has worked with yours before on other issues, so Im sure you could get this fixed too.So, let’s try this again.
If the default lang is english, an idx page would look like
https://www.site.com/idx/listings/some-page-name
Its “translation” in spanish (for example) would then be
https://www.site.com/es/idx/listings/some-page-name
However, even though the listing request to MSL is exactly the same, the fact that there’s /es/ in the url, gives the error:
We're sorry, but there’s nothing to display here; MLS data service is not activated for this account.
The MSL results dont need to be translated, but at least the url shouldnt return that error… and simply display the same results?!
Can you please provide an update? A RewriteRule? A function?
Or maybe instead of using get_home_url() all over place (which then includes also the /es/) maybe simply use a constant likefunction dsidxpress_siteURL() { $protocol = (!empty($_SERVER['HTTPS']) && $_SERVER['HTTPS'] !== 'off' || $_SERVER['SERVER_PORT'] == 443) ? "https://" : "https://"; $domainName = $_SERVER['HTTP_HOST'].'/'; return $protocol.$domainName; } define( 'DSIDXPRESS_WPML_SITE_URL', dsidxpress_siteURL() );
Thanks
- The topic ‘Compatibility WPML & dsIDXpress IDX Plugin’ is closed to new replies.