Home › Forums › Pro Support › If is wpsp_id? › Reply To: If is wpsp_id?
May 12, 2017 at 12:56 am
#2025
Keymaster
K, try this:
add_action( 'wpsp_before_content','wpsp_add_custom_meta' );
function wpsp_add_custom_meta( $settings ) {
if ( 10 == $settings[ 'list_id' ] ) {
$field_name = "Måndag";
$field = get_field_object($field_name);
echo $field['label'] . ': ' . $field['value'];
}
}
So you would just change the 10
to your list ID.