Private: Home › Forums › WordPress Themes › Elvyre – Retina Ready WordPress Theme › Polylang and Content Manager › Reply To: Polylang and Content Manager
July 21, 2015 at 5:12 pm
#3376
Keymaster
Hello Ozan,
Content won’t be copied because PolyLang has specific way of copying text for translation.
But there is simple way to duplicate your page. When you click on plus-icon and new page opens, use Prebuilt layouts to import all content from English version of the page.
Before doing this you will need to update one line in Content Manager because it seems that PolyLang changed the way of duplicating pages so there is one compatibility issue.
Open “wp-content / plugins / content-manager / content-manager.php”. Find code below (near line 710):
$pages = get_posts(array(
'post_type' => $post_types,
'post_status' => array('publish', 'draft'),
'numberposts' => 200
));
And change to this:
$pages = get_posts(array(
'post_type' => $post_types,
'post_status' => array('publish', 'draft'),
'numberposts' => 200,
'lang' => '' // Compatibility with PolyLang
));
Vladimir