First off, I think Polylang is brilliant. I am using it to develop Gàidhlig language websites.
I have pretty permalinks enabled and am running a static homepage on a custom template. All is working well. Apart from one thing.
I am using the following code to publish the excerpt of the "about us" page on the static homepage. It is working perfectly in English, because I am querying that exact page. However, I can't work out how to write the query in order to pull the extract of the page depending on which language is selected. The ID of the gd page is 26. I guess I am missing something obvious, but I have no idea what it is.
Thanks in advance
<?php query_posts( 'page_id=27' );?> <?php while ( have_posts() ) : the_post(); ?> <p><?php the_excerpt(); ?></p> <p><a href="<?php the_permalink(); ?>" title="<?php the_title_attribute(); ?>" >>></a></p> <?php endwhile; ?> <?php wp_reset_query(); ?>