GravityView  1.19.4
The best, easiest way to display Gravity Forms entries on your website.
post_category.php
Go to the documentation of this file.
1 <?php
2 /**
3  * Display the post_category 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'] ) ) {
14 
15  $term_list = gravityview_get_the_term_list( $entry['post_id'], $field_settings['link_to_term'], 'category');
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 }
$gravityview_view
$field_settings['content']
Definition: custom.php:27
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:936
static getInstance($passed_post=NULL)
$entry
Definition: notes.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:885