GravityView  2.17
The best, easiest way to display Gravity Forms entries on your website.
Variables
field-other_entries-html.php File Reference

Go to the source code of this file.

Variables

if(! isset( $gravityview)||empty( $gravityview->template)) $created_by = \GV\Utils::get( $gravityview->entry, 'created_by' )
 The default field output template displaying entries created by same author. More...
 
 $deprecated = apply_filters( 'gravityview/field/other_entries/args', array(), null )
 
if(empty( $created_by)) $entries = $gravityview->field->field->get_entries( $gravityview )
 There was no logged in user who created this entry. More...
 
if(empty( $entries)) $list
 Don't show if no entries and the setting says so. More...
 

Variable Documentation

◆ $created_by

if (! isset($gravityview)||empty($gravityview->template)) $created_by = \GV\Utils::get( $gravityview->entry, 'created_by' )

The default field output template displaying entries created by same author.

$gravityview

Since
2.0

Definition at line 15 of file field-other_entries-html.php.

◆ $deprecated

$deprecated = apply_filters( 'gravityview/field/other_entries/args', array(), null )
Since
1.7.6

Definition at line 55 of file field-other_entries-html.php.

◆ $entries

if (empty($created_by)) $entries = $gravityview->field->field->get_entries( $gravityview )

There was no logged in user who created this entry.

Definition at line 22 of file field-other_entries-html.php.

◆ $list

if (empty($entries)) $list
Initial value:
array_map( function( $entry ) { return $entry->as_entry(); }, $entries ),
$gravityview->request->is_view( false ) ? $gravityview->view->ID : ( is_object( $GLOBALS['post'] ) ? $GLOBALS['post']->ID : 0 ),
$gravityview->view->form->form,
$gravityview->field->link_format,
$gravityview->field->after_link,
'other_entries',
$gravityview
)
If this file is called directly, abort.
if(empty( $created_by)) $entries
There was no logged in user who created this entry.
$entry
Definition: notes.php:27

Don't show if no entries and the setting says so.

If there are search results, get the entry list object.

Definition at line 38 of file field-other_entries-html.php.