Polylang and CPT
-
I use the Ego theme and Polylang recognize the Portfolios cpt, but the Homepage Slides and Homepage Sections were not visible in the plugin admin. So I added this code
add_filter(‘pll_get_post_types’, ‘my_pll_get_post_types’);
function my_pll_get_post_types($types) {
return array_merge($types, array( ‘Homepage Slides’ => ‘Homepage Slides’, ‘Homepage Sections’ => ‘Homepage Sections’));
}
Now I see two new checkboxes in the admin but without label and the cpt have no more the language box in the edit section.
Any suggestion?
Viewing 2 replies - 1 through 2 (of 2 total)
Viewing 2 replies - 1 through 2 (of 2 total)
- The topic ‘Polylang and CPT’ is closed to new replies.