Nextgen siteurl and WPML
-
Hello,
I have a WordPress in a subdirectory (https://domain.tld/subdir). I use, for this website, Nextgen Gallery and WPML.
Nextgen works fine for the principal language (French) but in english Nextgen doesn’t work because in get_base_url function ( products/photocrati_nextgen/modules/wordpress_routing/adapter.wordpress_route.php) site_url() and home_url returns https://domain.tld/subdir/en and consequently nextgen try to load images in https://domain.tld/subdir/en/wp-content/gallery…
My solution is change site_url() by get_option(‘siteurl’) and home_url() by get_option(‘home’). Have you got a better solution for me ?
Thanks
Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
- The topic ‘Nextgen siteurl and WPML’ is closed to new replies.