Yeah, I could use an element hook to make it available where I want, though, isn’t that right?
Anyway, I managed to display the custom title with a link to the single post in WP Show Posts like this:
add_action( 'wpsp_before_title','wpsp_add_custom_meta' );
function wpsp_add_custom_meta()
{
$meta = get_post_meta( get_the_ID(), 'custom_title', true );
if ( isset( $meta ) && '' !== $meta )
$permalink = get_permalink( get_the_ID() );
echo '<h4 class="custom-entry-title" itemprop="headline"><a href="' . $permalink . '"' . 'rel="bookmark"> ' . $meta . '</a>' . '</h4>';
}
Then, I used CSS to hide the original title:
.wp-show-posts-entry-title {
display: none;
}
Is this a correct way of doing this also from an SEO perspective as well?