Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Contributor Michael Beckwith

    (@tw2113)

    The BenchPresser

    Looks like I was wrong in how YARPP handles its CPT support, so I’ll need to make more amends to the plugin to handle that one.

    That said, I did find the following snippet which looks like it’d work well until then.

    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);

    It’ll go in your active theme’s functions.php file.

    Thread Starter Jenxi Seow

    (@jenxi)

    Thanks! That broke some things when I added it to functions.php, so I added it to the custom post type template page instead and it worked.

    Plugin Contributor Michael Beckwith

    (@tw2113)

    The BenchPresser

    The only way I can imagine it broke some things with functions.php would be dependent on where you placed it, otherwise it should have been fine. Anyways, you got it working somehow, so that’s the important part.

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Enabling YARPP support’ is closed to new replies.