• 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 / twentynineteen_entry_footer() – Prints HTML with meta information for the categories, tags and comments.

You appear to be a bot. Output may be restricted

Description

Prints HTML with meta information for the categories, tags and comments.

Usage

twentynineteen_entry_footer();

Parameters

Returns

void

Source

File name: twentynineteen/inc/template-tags.php


Lines:

1 to 59 of 59
  function twentynineteen_entry_footer() {

    // Hide author, post date, category and tag text for pages.
    if ( 'post' === get_post_type() ) {

      // Posted by.
      twentynineteen_posted_by();

      // Posted on.
      twentynineteen_posted_on();

      $categories_list = get_the_category_list( wp_get_list_item_separator() );
      if ( $categories_list ) {
        printf(
          /* translators: 1: SVG icon. 2: Posted in label, only visible to screen readers. 3: List of categories. */
          '<span class="cat-links">%1$s<span class="screen-reader-text">%2$s</span>%3$s</span>',
          twentynineteen_get_icon_svg( 'archive', 16 ),
          __( 'Posted in', 'twentynineteen' ),
          $categories_list
        ); // WPCS: XSS OK.
      }

      $tags_list = get_the_tag_list( '', wp_get_list_item_separator() );
      if ( $tags_list && ! is_wp_error( $tags_list ) ) {
        printf(
          /* translators: 1: SVG icon. 2: Posted in label, only visible to screen readers. 3: List of tags. */
          '<span class="tags-links">%1$s<span class="screen-reader-text">%2$s </span>%3$s</span>',
          twentynineteen_get_icon_svg( 'tag', 16 ),
          __( 'Tags:', 'twentynineteen' ),
          $tags_list
        ); // WPCS: XSS OK.
      }
    }

    // Comment count.
    if ( ! is_singular() ) {
      twentynineteen_comment_count();
    }

    // Edit post link.
    edit_post_link(
      sprintf(
        wp_kses(
          /* translators: %s: Post title. Only visible to screen readers. */
          __( 'Edit <span class="screen-reader-text">%s</span>', 'twentynineteen' ),
          array(
            'span' => array(
              'class' => array(),
            ),
          )
        ),
        get_the_title()
      ),
      '<span class="edit-link">' . twentynineteen_get_icon_svg( 'edit', 16 ),
      '</span>'
    );
  }
 

 View on GitHub View on Trac

Published: 25th November 2019 | Last updated: 9th June 2022

Primary Sidebar

Information

Function name: twentynineteen_entry_footer
Plugin ref: Twenty Nineteen
Version: 2.4
Sourcefile: inc/template-tags.php
File ref: inc/template-tags.php
Deprecated?: No
API Letters: E,F,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