Link a page to a sidebar widget

  • Anonymous


    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.



    I was so happy when I saw you figured this out this morning! I am not sure if I would ever have managed this 😉

    So it would even be possible to add the image from you post to it?



    You can also use 🙂



    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(); ?>



    Nothing extra happens by adding the code above 😉



    Sorry… I suppose I could test it first before ‘throwing’ code at you 😉

    $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; ?>

    The part with ( array (200,120) ) translates to ( array (width,height) )



    Hmm it is doing something, but now I only see a blank space above the link (I tried changing the array, but that didn’t have any effect). What am I ding wrong?



    Try it again, I had to go back and edit the code a little.



    Still not showing (and of course I don’t mind testing the code 😉 )



    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?

Viewing 10 posts - 31 through 40 (of 43 total)

  • You must be logged in to reply to this topic.