How to pull the featured image url using the find function
-
Hi,
I am using the tutorial from the find function the doc but can’t find a way to pull the featured image url from the pod data. When I use ‘post_thumbnail’ in the display function it returns me the full image html code. Can you please guide me in the right direction?
// Here's how to use find() $params = array( 'limit' => 3, 'page' => 2, // Be sure to sanitize ANY strings going here 'where'=>"category.name = 'My Category'" ); // Run the find $mypod = pods( 'mypod', $params ); // Loop through the records returned while ( $mypod->fetch() ) { echo $mypod->display( 'post_thumbnail' ) . "\n"; }
Thank you
Viewing 4 replies - 1 through 4 (of 4 total)
Viewing 4 replies - 1 through 4 (of 4 total)
- The topic ‘How to pull the featured image url using the find function’ is closed to new replies.