Today I have updated WP to 3.5.1 and afterwords updated Polylang to 1.0.2 on one of my old sites and as a result it started mixing languages on custom post types. Previous version of WP was 3.5, not sure about Polylang, but I keep plugins up to date, so it wasn’t older than 3-4 weeks.
All language info in admin on custom posts is now gone: no language in post list, no language picker meta-box on edit page. Queries don’t have language filtering set automatically, like before. On regular posts and pages it still works OK.
Custom post types were created with Custom Post Type UI plugin version 0.7.2 (it wasn’t updated today), and no other changes to site have been made beside the already mentioned upgrade.
Language info is still in the database, if I explicitly add lang param to my query it works:
$args = array( 'post_type' => 'info', 'posts_per_page' => 3, 'orderby' => 'menu_order', 'lang' => pll_current_language('slug'));
$loop = new WP_Query( $args );
this will work, but previously it was injecting the language conditions automatically?
So front-end can be quick fixed like this, but the admin still lacks any way to control the language, so I can’t add any new content at the moment.
Please advise, this is kinda urgent problem and any help will be greatly appreciated…
- The topic ‘Problem with Custom Post types after 1.0.2 update’ is closed to new replies.