GravityView  2.17
The best, easiest way to display Gravity Forms entries on your website.
post_tags.php
Go to the documentation of this file.
1 <?php
2 /**
3  * Display the post_tags 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  $term_list = gravityview_get_the_term_list( $entry['post_id'], $field_settings['link_to_term'] );
16 
17  if( empty( $term_list ) ) {
18  do_action('gravityview_log_debug', 'Dynamic data for post #'.$entry['post_id'].' doesnt exist.' );
19  }
20 
21  echo $term_list;
22 
23 } else {
24 
25  if( empty( $field_settings['link_to_term'] ) ) {
26 
27  echo $display_value;
28 
29  } else {
30 
32  }
33 }
static getInstance( $passed_post=NULL)
gravityview_get_the_term_list( $post_id, $link=true, $taxonomy='post_tag')
Get the links for post_tags and post_category output based on post ID.
Definition: class-api.php:1115
$gravityview_view
Definition: post_tags.php:9
$display_value
$field_settings['content']
Definition: custom.php:27
gravityview_convert_value_to_term_list( $value, $taxonomy='post_tag')
Take a passed CSV of terms and generate a linked list of terms.
Definition: class-api.php:1060
$entry
Definition: notes.php:27