Support » How-To and Troubleshooting » Linking back to featured image page

Linking back to featured image page

  • I’m displaying featured images from child pages of Portfolio, and would like the images to link back to their corresponding page. Can you point out what I’m doing wrong here:

    $projects = get_pages( array('sort_column' => 'menu_order', 'sort_order' => 'ASC', 'child_of' => 79) );  
    if (!$projects) {
      echo "problem";
    } else {
      foreach( $projects as $project ) { ?>
        <div class="grid_3">
        <a href="<?php get_permalink( $project->ID ); ?>">
        <?php echo get_the_post_thumbnail( $project->ID, 'full' ); ?>
    <?php }

    Thank you. 🙂

  • The topic ‘Linking back to featured image page’ is closed to new replies.
Skip to toolbar