Reply To: version 1.7. not working for me | WP Masonry Layout

Reply To: version 1.7. not working for me

Reply To: version 1.7. not working for me

Home Forums Lite Version version 1.7. not working for me Reply To: version 1.7. not working for me

#13372 Reply

Martina Bartik

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';
?>