9 if ( ! isset( $gravityview ) || empty( $gravityview->template ) ) {
10 gravityview()->log->error(
'{file} template loaded without context', array(
'file' => __FILE__ ) );
14 if ( ! empty( $gravityview->field->dynamic_data ) && ! empty( $gravityview->entry[
'post_id'] ) ) {
21 $post = get_post( $gravityview->entry[
'post_id'] );
23 if ( empty( $post ) ) {
24 gravityview()->log->error(
'Dynamic data for post {post_id} does not exist.', array(
'post_id' => $gravityview->entry[
'post_id'] ) );
29 setup_postdata( $post );
37 echo $gravityview->display_value;
gravityview()
The main GravityView wrapper function.