• I need little help with getting featured image.

    I’m using Pods Plugin and I made my Pod as Post type. Now I want to display Pods title, content and featured image. My code look like this:

    <?php
    $mypod = pods(‘program’);
    $mypod->find(‘name ASC’, $limit);
    $limit = 1000;
    $counter = 1
    ?>
    <?php while ( $mypod->fetch() ) : ?>
    <?php
    // set variables
    $title= $mypod->field(‘title’);
    $description= $mypod->field(‘content’);
    $featureimg= $mypod->field(‘post-thumblines’);
    ?>
    <?php echo $title; ?>
    <?php echo $description; ?>
    <?php echo $featureimg; ?>
    <?php endwhile; ?>

    From this code I’v got my title and content but not featured image. Can somebody help me how to get Featured image PLEASE!

    Thanks!

Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)

The topic ‘Get featured image’ is closed to new replies.