Created
March 20, 2018 00:36
-
-
Save nicdford/a19eec2de96209e319ab0eabb8721109 to your computer and use it in GitHub Desktop.
Revisions
-
nicdford created this gist
Mar 20, 2018 .There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -0,0 +1,17 @@ <?php $params = array( 'limit' => 3, 'where' => "source.meta_value = 'google'" // Relationship (Custom Simple) ); $pods = pods( 'testimony', $params ); if ( !empty( $pods ) ) { while ($pods->fetch()){ echo '<h2>' . $pods->display('post_title') . '</h2>'; echo '<p>' . $pods->display('testimony_date') . '</p>'; echo '<p>' . $pods->display('source') . '</p>'; echo '<hr>'; } } ?>