Home › Forums › Lite Version › version 1.7. not working for me › Reply To: version 1.7. not working for me
July 31, 2016 at 6:03 pm #13372
Guest
or rather
<?php
// orig. incorrect:
// $link = admin_url('admin-ajax.php?action=wml_load_posts&shortcodeId='.$shortcodeId);
//
// @BAM 2016-02-03 corr bam to fit polylang language settings
if ( defined( 'POLYLANG_VERSION' ) ) {
$currentWebsiteLanguage = pll_current_language();
$link = admin_url('admin-ajax.php?lang='.$currentWebsiteLanguage.'&action=wml_load_posts&shortcodeId='.$shortcodeId);
} else {
$link = admin_url('admin-ajax.php?action=wml_load_posts&shortcodeId='.$shortcodeId);
}
// @BAM END
$containerDivId = 'wmle_container';
?>