Link a page to a sidebar widget

  • Anonymous

    #18928

    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.

    Ricardo

    #18929

    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?

    Ricardo

    #18930

    You can also use info@fastforwardandrewind.com 🙂

    Anonymous

    #18931

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

    Ricardo

    #18932

    Nothing extra happens by adding the code above 😉

    Anonymous

    #18933

    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) )

    Ricardo

    #18934

    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?

    Anonymous

    #18935

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

    Ricardo

    #18936

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

    Anonymous

    #18937

    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.