Using widget and show posts from the same language
-
Hello,
I have read a lot of topics about top10 and WPML.
I have this website http://www.elinongi.gr/en/property-item/rear-sea-front-plot-opportunity-in-lefkas-island/ which you can see that there is a left sidebar and I am using TOP10 widget to show the 3 most popular posts.I have also inserted this code to my functions.php file
/** * This function forces all related / top ten posts are from the same language. * * @param bool $return_original_if_missing */ function filter_return_ori( $return_original_if_missing ) { return true; } add_filter( 'crp_wpml_return_original', 'filter_return_ori' ); add_filter( 'tptn_wpml_return_original', 'filter_return_ori' );
However, when you change from English language to Greek or Russian, top10 insists to show Greek posts instead of the posts at the same language.
It drives me insane why this happened! I have read all your changelong and I cannot find something similar to this.
Any advice please!!??
- The topic ‘Using widget and show posts from the same language’ is closed to new replies.