[Plugin: Custom Content Type Manager] translations in custom. hierarchical post
-
Hi, I’m using this wonderful plugin in a multilanguage site (translations by the mean of qTranslate).
I created a custom content type with just standard ‘Title’ and ‘Content’ fields. When rendered in a “Add new” or “Edit” window qTranslate take charge of generating the two different titles’ text boxes, one for each language.
Then I created a new custom content type that is meant to be hierarchically below the other one. I checked the ‘Page attributes’ > ‘Hierarchical’ in order to have the Attributes‘ meta box.
Now, when editing this content the meta box is correctly generated but the Parent drop-down menu contains a very long string made up of the two post_title (in the two languages).
My temporary solution was to edit the
customized_hierarchical_post_types()
function on line 144 by replacing $p->post_title with __($p->post_title).
Just using the __() standard WP function (that is somehow overridden by qTranslate) allows the Parent drop-down menu to show only one title, in the backend choosen language.Don’t know if this is something that is going to be considered in future versions but just wanted to let other multilanguage sites’ users that this worked for me.
http://wordpress.org/extend/plugins/custom-content-type-manager/
- The topic ‘[Plugin: Custom Content Type Manager] translations in custom. hierarchical post’ is closed to new replies.