GravityView  1.19.4
The best, easiest way to display Gravity Forms entries on your website.
post_content.php
Go to the documentation of this file.
1 <?php
2 /**
3  * Display the post_content field type
4  *
5  * @package GravityView
6  * @subpackage GravityView/templates/fields
7  */
8 
10 
11 extract( $gravityview_view->getCurrentField() );
12 
13 if( !empty( $field_settings['dynamic_data'] ) && !empty( $entry['post_id'] ) ) {
14 
15  global $post;
16 
17  $post = get_post( $entry['post_id'] );
18 
19  if( empty( $post ) ) {
20  do_action('gravityview_log_debug', 'Dynamic data for post #'.$entry['post_id'].' doesnt exist.' );
21  wp_reset_postdata();
22  return;
23  }
24 
25  setup_postdata( $post );
26  the_content();
27  wp_reset_postdata();
28 
29 } else {
30  echo $display_value;
31 }
$gravityview_view
Definition: post_content.php:9
$field_settings['content']
Definition: custom.php:27
global $post
static getInstance($passed_post=NULL)
$entry
Definition: notes.php:27