Hey,
Which multi lingual plugin are you using?
Can you post a link to your site?
Ben
Thanks for your response, Ben.
I am using Polylang
English – http://www.greatlakeshelicopter.ca/
Portuguese – http://www.greatlakeshelicopter.ca/pt/
OK, so if you would like the posts to show in English while on the Portuguese pages I don’t know of a way to set that in polylang. I know you can if you’re using WPML but you would need to check with polylang support to see if you can force a default language to show if there are no translations available. I think this would be important because you wouldn’t want someone from say Brazil not knowing that you had a blog on your site especially when you consider how easy google translation works in browsers.
Or if you would like to hide the latest posts you can use this css:
html[lang="pt-BR"] .home .home_blog {
display: none;
}
I hope that helps,
Ben
Thank you Ben, that worked well.
I checked with Polylang and the only way to have the the posts in English for any language is duplicating the posts. This option is also available in the Pro version and I think you could synchronize it, so you don’t need to duplicate manually.
Hi Ben,
I looked into the php files of Polylang and found a solution for this:
File -> polylang/frontend/frontend.php
public function parse_query( $query ) {
// Allow filtering recent posts and secondary queries by the current language
if ( ! empty( $this->curlang ) ) {
//$pll_query->filter_query( $this->curlang ); //original
$pll_query->filter_query( '' ); //added by Milton to get posts in all languages
}