I use Polylang for the traductions. To display the pitches of the campsite I use the posts of the site. I duplicate them without changing the parameters. In the English version the visual is correct.
Please share your website login credentials with me so I can test this. To safely include your credentials click the Insert Credentials button in the editor toolbar (see how)
We don't know why this problem is happening on your site exactly.
Anyway, I have added this code to functions.php file:
// Workaround to prevent post content in single page to appear multiple times
add_action( 'wp', function() {
if ( is_single() ) {
global $wp_query;
if ( count( $wp_query->posts ) > 1 ) {
$wp_query->posts = [ $wp_query->posts[0] ];
$wp_query->post_count = 1;
}
}
} );
to manually fix this problem.
For more info, you can contact the Polylang plugin so they can head you in the right direction and tell you what you are doing wrong or what settings of the plugin causes this.
Hello,
I use Polylang for the traductions. To display the pitches of the campsite I use the posts of the site. I duplicate them without changing the parameters. In the English version the visual is correct.
Here is an example - https://www.camping-morvan.fr/en/pitch-4/
In the French version the content is displayed twice - https://www.camping-morvan.fr/place-4
I can't understand why? Can you help me, please?
Best regards,
Anna
Hi Anna,
Please share your website login credentials with me so I can test this. To safely include your credentials click the Insert Credentials button in the editor toolbar (see how)
Thanks!
Hi Anna,
We don't know why this problem is happening on your site exactly.
Anyway, I have added this code to functions.php file:
to manually fix this problem.
For more info, you can contact the Polylang plugin so they can head you in the right direction and tell you what you are doing wrong or what settings of the plugin causes this.
Thanks!
Hi Ylli,
Thanck you a lot ! It s perfect !
King regards,
Anna
Happy to hear that Anna
I wish you have an amazing day!
P.S: If you like Kalium, it would help us a lot if you could give us a five-star rating on Themeforest from your Downloads tab.
A huge thank you from me and Laborator in advance.