Hi Markus,
Do you want to add the subtitle before the entry title in each single post?
If so, try add this code in a hook element, change the your-custom-field
to the slug of your custom field.
<?php
// Get custom field value
$subtitle = get_post_meta( get_the_ID(), 'your-custom-field', true );
// Display $subtitle if not empty
if ( ! empty( $subtitle ) ) {
echo '<p class="custom-subtitle">' . $subtitle. '</p>';
}
?>
Tick the Execute PHP box, choose generate_before_entry_title
as the hook, choose post > all posts
as location.
Please refer to the screenshot below:
https://www.screencast.com/t/R3qY61cW0gv
If you want it to be at other spot on the site, here’s the visual hook guide:
https://docs.generatepress.com/article/hooks-visual-guide/