CFS()->get()
Compatible APIRetrieves a stored value by field name. Pass a post ID as the second argument to retrieve from another post. Omit the field name to retrieve the CFS field values for the post as an array.
<?php
echo esc_html( CFS()->get( 'field_name' ) );
echo esc_html( CFS()->get( 'field_name', 123 ) );
$fields = CFS()->get();
?>Retrieval and output are separate steps. Escape for the output context with functions such as esc_html(), esc_url(), and wp_kses_post().