Home › Forums › Pro Support › Adding extra fields to output › Reply To: Adding extra fields to output
October 13, 2017 at 11:10 pm
#2789
Keymaster
Yes, you could do something like this:
add_action( 'wpsp_before_content', 'tu_add_custom_meta' );
function tu_add_custom_meta() {
$meta = get_post_meta( get_the_ID(), '_your_custom_meta_key', true );
if ( isset( $meta ) && '' !== $meta ) {
echo $meta;
}
}
It should be added in your child theme functions.php file, or using a plugin like this: https://en-ca.wordpress.org/plugins/code-snippets/