Problem adding custom post type thumbbnails to home template.
-
Im trying to insert a thumbnail image from a custom post type in my home page template (home.php).
So far, Ive got the list of pages with links but the thumbnail image does not show. I use the same code in a sidebar so i know it should work.
any clue why this doesnt show the thumbnail image?
`<a href="slug, ‘series’ ); ?>” class=”seriestitle”>
name; ?><?php
$wpq = array( ‘post_type’ => ‘tutorials’, ‘taxonomy’ => ‘series’, ‘term’ => $series->slug, ‘order’ => ‘ASC’ );
$series_posts = new WP_Query ($wpq);
?>
posts as $post ) : ?>
ID); ?>
<a href="ID ); ?>” class=”serieslink”>
post_title; ?>`
You must be logged in to reply to this topic.