layers_before_list_post_title

Since: 1.0.7 Last Updated:
Back to Main Index

Outputs your custom code before the post title in the archive post lists and Blog page template. This code is outside of the <header> wrapper, so will not inherit its styling.

Location: partials/content-list.php

Code output appears after:

Code output appears before:

Usage:

This hook can be useful if you want to insert custom code, such as meta, links or static text, above the post title but outside of the title’s wrapper. This example uses layers_post_meta to show the category link in this location. It assumes the default post meta output after the content is being filtered or hidden with CSS to avoid duplication. Custom classes can be added to the third argument after meta-info