function custom_genesis_do_author_box() { if (is_single() && genesis_get_option('author_box_single')) { genesis_author_box(); return; } }
/** * Add author box to the top of author archive * * @since 1.4 */ function genesis_do_author_box_archive() { if (!is_author() || get_query_var('paged') >= 2) { return; } if (get_the_author_meta('genesis_author_box_archive', get_query_var('author'))) { genesis_author_box('archive'); } }
/** * Conditionally add the author box after single posts or pages. * * @since 1.0.0 * * @uses genesis_author_box() Echo the author box. * * @return null Return early if not a single post or page. */ function genesis_do_author_box_single() { if (!is_single()) { return; } if (get_the_author_meta('genesis_author_box_single', get_the_author_meta('ID'))) { genesis_author_box('single'); } }
/** * Conditionally add the author box after single posts or pages. * * @since 1.0.0 * * @return null Return early if not a single post or page, or post type does not support `author`. */ function genesis_do_author_box_single() { if (!is_single() || !post_type_supports(get_post_type(), 'author')) { return; } if (get_the_author_meta('genesis_author_box_single', get_the_author_meta('ID'))) { genesis_author_box('single'); } }