• 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 ago by mhmdsalah.
Viewing 1 replies (of 1 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.

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