layers_after_single_title_meta

Since: 1.1.5 Last Updated:
Back to Main Index

Outputs your custom code after the Post Meta on single posts.

Location: partials/content-single.php

Code output appears after:

Code output appears before:

Usage:

By default, the date is output before the title on single posts, and repeated again at the end of the post. This hook is useful for inserting your own custom meta, links or HTML into this location. When inserting your own meta snippet, you can hide the original with CSS. In this example, we insert a custom layers_post_meta()  snippet to show the category in addition to the date. The default instance of the date can then be hidden by CSS with .single header .meta-date{display: none;}  , no modification to the template needed!

Note that this hook is inside a condition that will only allow the output to be shown on single posts. If you have a child theme that uses the content-single partial in a custom post type, it will not display your hook content. Use layers_before_single_title to ensure code is globally visible if needed.