Link a page to a sidebar widget
-
Thanks for the add. After reading the top of the page, I was overwhelmed with a gratifying feeling of satisfaction 🙂
I want to send you a few loops I’ve done. It’s nothing crazy special, just some stuff I did with Fruity Loops and Auturia Storm.
I’ll shoot you an email through your site contact form, reply to me, and then I can attach them to the email.
You can also use info@fastforwardandrewind.com 🙂
Try adding this for displaying the post thumbnail:
<?php echo get_the_post_thumbnail($page->ID, 'thumbnail'); ?>
Insert it right after this line of the code:
<?php while ($the_query->have_posts()) : $the_query->the_post(); ?>
Sorry… I suppose I could test it first before ‘throwing’ code at you 😉
<ul>
<?php
$args = array(
'meta_key' => 'release-date',
'meta_value' => date( 'd-m-Y' ),
);
$the_query = new WP_Query( $args );
?>
<?php while ($the_query->have_posts()) : $the_query->the_post(); ?>
<li><a href="<?php the_permalink() ?>"><?php the_post_thumbnail( array (200,120) ); ?></a><br /><a href="<?php the_permalink() ?>" rel="bookmark"><?php the_title(); ?></a></li>
<?php endwhile; ?>
</ul>The part with
( array (200,120) )
translates to( array (width,height) )
Try it again, I had to go back and edit the code a little.
Hmm… one sec.
Do you have both a featured image AND another image regularly inserted into the post somewhere? Maybe this code only pulls an image inserted into the post (or only the featured image). Do you have both in the post you are using with the custom fields?
- You must be logged in to reply to this topic.