Linking to the latest page which is a child of a specific page
-
Hi all!
I have this code that returns the thumbnail of this post.
<?php if (have_posts()) : while (have_posts()) : the_post(); if (has_post_thumbnail()) : the_post_thumbnail('no-scale-thumb'); endif; endwhile; endif; ?>
Now I am trying to wrap this thumbnail image with a link to the last-published page that is a child of another page (id=13). So when a user clicks on the image he’s taken to the latest recipe (recipes are published as children of Recipes page).
Your help is appreciated. Thank you!
Viewing 2 replies - 1 through 2 (of 2 total)
Viewing 2 replies - 1 through 2 (of 2 total)
- The topic ‘Linking to the latest page which is a child of a specific page’ is closed to new replies.