layers_after_single_post

Since: 1.0.7 Last Updated:
Back to Main Index

Outputs your custom code after the post, meta and comments but stays within the main <article>  wrapper of the post column. Code is output inside the loop.

Location: partials/content-single.php

Code output appears after:

Code output appears before:

Usage:

This hook is very useful for inserting custom elements or functionality after the post content, but that you wish to stay within the post wrapper so it conforms to any sidebar layout. This example adds a custom next and previous post nav using previous_post_link() and next_post_link()