Hi EM,
are you using the WordPress SEE plugin from Yoast?
Kind regards,
Thorsten
I also noted today that the last post that was published on the main blog does not show on the translated blog. What could cause this problem?
The current version 3.1 of WordPress SEO comes with a bug (that already has a patch waiting for review). You can fix it temporarily by putting the following code in a new file wp-content/mu-plugins/yoast-seo-fix.php:
<?php # -*- coding: utf-8 -*-
add_action( 'mlp_before_post_synchronization', function () {
global $wpseo_admin;
if ( ! is_a( $wpseo_admin, 'WPSEO_Admin' ) ) {
return;
}
$admin_features = $wpseo_admin->get_admin_features();
if ( ! isset( $admin_features['primary_category'] ) ) {
return;
}
$primary_category = $admin_features['primary_category'];
remove_filter( 'save_post', array( $primary_category, 'save_primary_terms' ) );
add_action( 'mlp_after_post_synchronization', function ( $primary_category ) use ( $primary_category ) {
add_filter( 'save_post', array( $primary_category, 'save_primary_terms' ) );
} );
} );
If you don’t have a mu-plugins folder in wp-content, just create it.
Hope that helps,
Thorsten
Great!, I will do this asap. Should I remove the fix after your next revision?
And do you know why new posts are not synced up with the English site?
Best regards,
EM
This is a problem with WordPress SEO, not with MultilingualPress. So you have to keep this fix (if it’s working) until WordPress SEO publishes a new version.
Please report back if there’s anything strange even with the fix.
Thanks,
Thorsten
Good, I’ll keep an eye on it.