• In one of my project I have 3-5 CPTs. But only one of them (My CPT) is visible in MultilingualPress settings page:
    /wp-admin/network/settings.php?page=mlp

    So I can activate that one only. I thought it’s a drawback of the free version, but it’s actually working for other post types also. As the Contact Form 7 and Log Deprecated Notices plugin added 2 other CPTs they are visible there in that list, but not all my CPTs.

    Screenshot: http://prntscr.com/a0iojc

    What can cause the issue?

    P.S.: All my CPTs are registered using register_custom_post() hooked to init individually.

    https://wordpress.org/plugins/multilingual-press/

Viewing 4 replies - 1 through 4 (of 4 total)
  • Does your custom post types share all the same values for the parameters public, exclude_from_search, publicly_queryable, show_ui and show_in_*?

    If not, what are the differences?

    You can add/remove post types via the mlp_allowed_post_types filter hook. So for instance like so:

    add_filter( 'mlp_allowed_post_types', function ( $post_types ) {
    
        return array_merge( (array) $post_types, array(
            'foo',
            'bar',
        ) );
    } );

    Kind regards,
    Thorsten

    P.S.: there is no other version than the (free) MultilingualPress. 🙂

    Thread Starter Mayeenul Islam

    (@wzislam)

    Thanks a lot @ThorstenFrommen.

    I think that code assumes that, as register_post_type() is a plugin-territory function, it won’t be called from a theme. So your function was not functioning from my theme’s functions.php, but it’s working from a custom plugin.

    It’d be best for use cases like ours, if it can function from themes too. 😉

    P.S.: there is no other version than the (free) MultilingualPress. 🙂

    Wow! Once it’s so. But now! That’s awesome. Thanks a lot for developing the best plugin. Good Luck!

    Hi,

    glad it worked.

    Would you mind writing a short review for MultilingualPress instead? This would mean a lot to us.
    And with better (and more) reviews, MultilingualPress might get more popular, which in turn means more users, and thus eventually highly motivated developers and supporters. 🙂

    Kind regards,
    Thorsten

Viewing 4 replies - 1 through 4 (of 4 total)

The topic ‘Custom Post Type translator behaving strange’ is closed to new replies.