• Skip to primary navigation
  • Skip to main content
  • Skip to primary sidebar
  • Skip to footer
WordPress a2z

WordPress a2z

WordPress Dynamic API Reference

  • Home
  • Plugins
  • Themes
  • Shortcodes
  • APIs
  • Classes
  • Files
  • Hooks
  • Sitemap
  • Blog
Home / APIs / twenty_twenty_one_posted_by() – Prints HTML with meta information about theme author.

You appear to be a bot. Output may be restricted

Description

Prints HTML with meta information about theme author.

Usage

$void = twenty_twenty_one_posted_by();

Parameters

Returns

void

Source

File name: twentytwentyone/inc/template-tags.php
Lines:

1 to 11 of 11
  function twenty_twenty_one_posted_by() {
    if ( ! get_the_author_meta( 'description' ) && post_type_supports( get_post_type(), 'author' ) ) {
      echo '<span class="byline">';
      printf(
        /* translators: %s: Author name. */
        esc_html__( 'By %s', 'twentytwentyone' ),
        '<a href="' . esc_url( get_author_posts_url( get_the_author_meta( 'ID' ) ) ) . '" rel="author">' . esc_html( get_the_author() ) . '</a>'
      );
      echo '</span>';
    }
  }
 

 View on GitHub View on Trac

Published: 9th December 2020 | Last updated: 13th March 2021

Primary Sidebar

Information

Function name: twenty_twenty_one_posted_by
Plugin ref: Twenty Twenty-One
Version: 1.7
Sourcefile: inc/template-tags.php
File ref: inc/template-tags.php
Deprecated?: No
API Letters: B,O,P,T

Footer

WordPress a2z
WordPress a2z
WordPress Dynamic API Reference
WordPress 6.1.1. PHP: 8.0.28
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:  wp-a2z.org
© Copyright WordPress a2z 2014-2023. All rights reserved.


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

  • Home
  • Blog
  • Sitemap
  • Sites