• Skip to primary navigation
  • Skip to main content
  • Skip to primary sidebar
  • Skip to footer
Genesis Theme Framework a2z

Genesis Theme Framework a2z

WordPress Dynamic API Reference

  • Home
  • Plugins
  • Shortcodes
  • APIs
  • Classes
  • Files
  • Hooks
  • Sitemap
  • Blog
Home / APIs / genesis_do_author_box_single() – Conditionally add the author box after single posts or pages.

You appear to be a bot. Output may be restricted

Description

Conditionally add the author box after single posts or pages.

Usage

$void = genesis_do_author_box_single();

Parameters

Returns

void Return early if not a single post or page, or post type does not support `author`.

Source

File name: genesis/lib/structure/post.php
Lines:

1 to 11 of 11
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' );
  }

}
 

Published: 25th November 2019 | Last updated: 25th November 2019

Primary Sidebar

Information

Function name: genesis_do_author_box_single
Plugin ref: Genesis Framework
Version: 3.3.5
Sourcefile: lib/structure/post.php
File ref: lib/structure/post.php
Deprecated?: No
API Letters: A,B,D,G,S

Footer

Genesis a2z
Genesis Theme Framework a2z
WordPress Dynamic API Reference
WordPress 5.9.3
WordPress a2z
WordPress core a2z
Genesis Theme Framework a2z
Jetpack a2z
WordPress develop tests
Easy Digital Downloads a2z
WooCommerce a2z
Yoast SEO a2z
WordPress Blocks

Site:  genesis.wp-a2z.org
© Copyright Genesis a2z 2014-2022. All rights reserved.


Website designed and developed by Herb Miller
Proudly powered by WordPress and oik plugins

  • Home
  • Blog
  • Sitemap
  • Sites