Support » Plugin: Event Organiser » Use event post with YARPP

  • Resolved jbo.ciel



    I would like to add event into the Yet Another Related Posts Plugin.

    As i read:

    the attribute yarpp_support must be set to true on the custom post type when it is registered

    Is there anyway to add easily the attribute after the registration in my function.php?

    Thank you in advance for the help,

Viewing 1 replies (of 1 total)
  • Hello,

    I found a way on a blog to add all custom posts:

    function add_yarpp_support_to_post_types($post_type, $args) {
        global $wp_post_types;
        $args->yarpp_support = true;
        $wp_post_types[$post_type] = $args;
    add_action('registered_post_type', 'add_yarpp_support_to_post_types', 10, 2);

    So i close the topic for know.


Viewing 1 replies (of 1 total)
  • The topic ‘Use event post with YARPP’ is closed to new replies.