Viewing 2 replies - 1 through 2 (of 2 total)
  • Have you ever figured out a fix for this?

    This is what I did to solve the problem so it doesn’t on some Custom Types:

    I wrapped this line:

    return apply_filters( 'wp_about_author_display', $return_content );

    Grab the ID of the post, check the post type against the array of post types I don’t want to include the Author Box, then return the filters if passes check:

    $postid = get_the_ID();
    $my_custom_types = array("one-custom-type-name","products");
    if (!in_array(get_post_type($postid), $my_custom_types)){
        return apply_filters( 'wp_about_author_display', $return_content );
    }

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Author Box appearing on Custom Post Types’ is closed to new replies.