[ Index ]

PHP Cross Reference of WordPress

title

Body

[close]

/wp-content/themes/twentysixteen/inc/ -> template-tags.php (summary)

Custom Twenty Sixteen template tags Eventually, some of the functionality here could be replaced by core features.

File Size: 286 lines (9 kb)
Included or required:0 times
Referenced: 0 times
Includes or requires: 0 files

Defines 10 functions

  twentysixteen_entry_meta()
  twentysixteen_entry_date()
  twentysixteen_entry_taxonomies()
  twentysixteen_post_thumbnail()
  twentysixteen_excerpt()
  twentysixteen_excerpt_more()
  twentysixteen_categorized_blog()
  twentysixteen_category_transient_flusher()
  twentysixteen_the_custom_logo()
  wp_body_open()

Functions
Functions that are not part of a class:

twentysixteen_entry_meta()   X-Ref
Prints HTML with meta information for the categories, tags.

Create your own twentysixteen_entry_meta() function to override in a child theme.

since: Twenty Sixteen 1.0

twentysixteen_entry_date()   X-Ref
Prints HTML with date information for current post.

Create your own twentysixteen_entry_date() function to override in a child theme.

since: Twenty Sixteen 1.0

twentysixteen_entry_taxonomies()   X-Ref
Prints HTML with category and tags for current post.

Create your own twentysixteen_entry_taxonomies() function to override in a child theme.

since: Twenty Sixteen 1.0

twentysixteen_post_thumbnail()   X-Ref
Displays an optional post thumbnail.

Wraps the post thumbnail in an anchor element on index views, or a div
element when on single views.

Create your own twentysixteen_post_thumbnail() function to override in a child theme.

since: Twenty Sixteen 1.0

twentysixteen_excerpt( $css_class = 'entry-summary' )   X-Ref
Displays the optional excerpt.

Wraps the excerpt in a div element.

Create your own twentysixteen_excerpt() function to override in a child theme.

since: Twenty Sixteen 1.0
param: string $css_class Optional. Class string of the div element. Defaults to 'entry-summary'.

twentysixteen_excerpt_more()   X-Ref
Replaces "[...]" (appended to automatically generated excerpts) with ... and
a 'Continue reading' link.

Create your own twentysixteen_excerpt_more() function to override in a child theme.

return: string 'Continue reading' link prepended with an ellipsis.
since: Twenty Sixteen 1.0

twentysixteen_categorized_blog()   X-Ref
Determines whether blog/site has more than one category.

Create your own twentysixteen_categorized_blog() function to override in a child theme.

return: bool True if there is more than one category, false otherwise.
since: Twenty Sixteen 1.0

twentysixteen_category_transient_flusher()   X-Ref
Flushes out the transients used in twentysixteen_categorized_blog().

since: Twenty Sixteen 1.0

twentysixteen_the_custom_logo()   X-Ref
Displays the optional custom logo.

Does nothing if the custom logo is not available.

since: Twenty Sixteen 1.2

wp_body_open()   X-Ref
Fire the wp_body_open action.

Added for backward compatibility to support pre-5.2.0 WordPress versions.

since: Twenty Sixteen 2.0



Generated: Tue Apr 16 01:00:02 2024 Cross-referenced by PHPXref 0.7.1