Home › Forums › Pro Support › show data below post title › Reply To: show data below post title
July 29, 2020 at 2:23 pm
#17792
Keymaster
It may be better to manually place the categories before the title.
Let’s try:
1. Remove the code you added to move the categories.
2. Use the options I pointed to in the previous post.
3. Manually add the categories before the title:
add_action( 'wpsp_before_title', function( $settings ) {
printf( '<span class="wp-show-posts-terms wp-show-posts-meta">%1$s</span>',
get_the_term_list( get_the_ID(), $settings[ 'taxonomy' ], '', apply_filters( 'wpsp_term_separator', ', ' ) )
);
} );