• Resolved mhmdsalah

    (@mhmdsalah)


    I have many custom post types in my WordPress websites. some of them created by ACF, and others created by LearnPress plugin.

    I see nowhere that explains how to support these custom post types
    thanks.

    • This topic was modified 1 month, 2 weeks ago by mhmdsalah.
Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Support Akshay A

    (@akshaycode1)

    Hi, Kindly go to the theme’s functions.php file and add this filter once. Try it and let us know if it works.

    Note: Replace ‘custom_post_type_name‘ with your actual post type name.

    /* To enable support for custom post types */


    add_filter(‘wpm_posts_config’, ‘wpm_custom_post_type_clbk’);
    function wpm_custom_post_type_clbk($config){ $config[‘custom_post_type_name’] = array();
    return $config;
    }

    /* To enble support for custom post meta fields */


    add_filter(‘wpm_post_fields_config’, ‘wpm_custom_post_type_meta_fields’);
    function wpm_custom_post_type_meta_fields($config)
    {
    $config[‘custom_meta_field’] = array();
    return $config;
    }

    Also, we have raised a GitHub ticket regarding this concern and are planning to add a feature that will simplify this process, so you won’t need to add any filters again.

    Here is the Ticket.

    Plugin Support Akshay A

    (@akshaycode1)

    Hi,

    Hope you are doing well. We have just released an update version 2.4.18 that addresses this concern. The latest version now includes an option in the admin panel to choose a custom type, which removes the need to use hooks or filters like before.

    Go to WP Multilang settings, and you will find this option Post Type at the bottom. Please try using it once and let us know if you face any issues.

Viewing 2 replies - 1 through 2 (of 2 total)
  • You must be logged in to reply to this topic.