• On http://paulahiltunen.co.uk I’m using the following code to display the excerpts of four pages on the front page. However I can’t figure how to change the language of the excerpts when I switch from English to Finnish.

    The code is as follows

    <?php
    			$post_id = 9;
    			$queried_post = get_post($post_id);
    			$title = $queried_post->post_title; ?>
    			<h2><?php echo $title; ?></h2>
    			<p><?php echo $queried_post->post_excerpt; ?></p>

    Likewise the blue Learn More button needs to change the link to the finnish page when I switch language too.

    All help appreciated.

    Pete

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

  • The topic ‘[Plugin: Polylang] Can't make translation of queried post to work’ is closed to new replies.