GravityView  1.19.4
The best, easiest way to display Gravity Forms entries on your website.
post_id.php
Go to the documentation of this file.
1 <?php
2 /**
3  * Display the post_id field type
4  *
5  * @package GravityView
6  * @subpackage GravityView/templates/fields
7  */
8 
10 
11 extract( $gravityview_view->getCurrentField() );
12 
13 // Link to the post URL?
14 if( $gravityview_view->getCurrentFieldSetting('link_to_post') && !empty( $entry['post_id'] ) ) {
15 
16  echo gravityview_get_link( get_permalink( $entry['post_id'] ), esc_attr( $display_value ) );
17 
18 } else {
19 
20  echo $display_value;
21 
22 }
gravityview_get_link($href= '', $anchor_text= '', $atts=array())
Generate an HTML anchor tag with a list of supported attributes.
static getInstance($passed_post=NULL)
$entry
Definition: notes.php:27
$gravityview_view
Definition: post_id.php:9