Support » Plugin: WP About Author » Author Box appearing on Custom Post Types

  • Hey,

    Love the plugin, but when I had the box “Display on individual posts” checked, the box displayed on a custom post type post. My client freaked out!

    Hahaha, anyways: Is there any way to insert the author box via a template tag, or block of code, or perhaps another way to exclude it from custom post types?


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.