Quantcast
Channel: polylang – WordPress.org Forums
Viewing all articles
Browse latest Browse all 11471

Nikk on "[Plugin: Polylang] PPL strings don't work"

$
0
0

Hi!

I migrated my website from to another server, and now all my PPL strings don't work anymore.

I use for example in my template file:
<?echo ppl_link_page(4); /* Contact */?>

But unfortunately on my new server nothing appears on the screen.

This is what's in my functions.php:

function ppl_ID($id){
	$translated_id = pll_get_post($id);
	if($translated_id!=0){
		return $translated_id;
	}else{
		return $id;
	}
}

function ppl_get_page($id){
	return get_page(ppl_ID($id));
}

function ppl_link_page($id){
	$id = ppl_ID($id);
	return '<a href="'.get_permalink($id).'">'.get_page($id)->post_title.'</a>';
}

Hope someone can help me out, thanks!

http://wordpress.org/extend/plugins/polylang/


Viewing all articles
Browse latest Browse all 11471

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>