• Resolved Darkwing

    (@darkwing371gmxde)


    Nice concept so far with Bogo!

    Regrettably it seems not compatible with Custom Post Types. I tried to translate WooCommerce products, but the language selector doesn’t even show up in the editor. Language Switcher Plugin is gray, when viewing products, this means Custom Post Types.

    Bummer. Could have been so nice. ??

    https://www.ads-software.com/extend/plugins/bogo/

Viewing 5 replies - 1 through 5 (of 5 total)
  • Plugin Author Takayuki Miyoshi

    (@takayukister)

    Bogo’s localization is only available for Posts and Pages by default, in order to avoid giving unexpected effects on other Post Types. You can change it by utilizing bogo_localizable_post_types filter hook.

    Thread Starter Darkwing

    (@darkwing371gmxde)

    Ok, glad I’ve asked, good to know, I’ll give it a try sometime.

    Thanks!

    Ok – i find out that normal posts works fine, but not my custom post type. I just add the title of my custom post type in code of post-l10n-functions.php file in plugin directory on line:

    function bogo_localizable_post_types() {
    	$localizable = array( 'post', 'page', 'news' );

    I added ‘news’ in it. And it looks like it works, but when i click preview of my translated post in custom post type it gives me 404 error. But with normal post, it works fine. Is there anything els i need to do?

    PS: I tried change permalinks setting, it didn’t help.

    Hello,

    I’m also interest in implement this to my website. Of course, I don’t want to modify the plugin. Can I use the bogo_localizable_post_types in my functions? How?

    Thank you!

    Hello,

    Just a comment to let it clear, it works in your functions.php. Here is a little working example:

    add_filter(‘bogo_localizable_post_types’, ‘my_localizable_post_types’, 10, 1);

    function my_localizable_post_types($localizable) {
    $localizable[] = ‘event’;
    return $localizable;
    }

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘Custom Post Types?’ is closed to new replies.