WordPress.org

Ready to get started?Download WordPress

Forums

[Plugin: PHP Code Widget] Showing only excerpts (images) in this widget (1 post)

  1. Sakshin
    Member
    Posted 4 years ago #

    I made a small column, displaying only the images from the exerpts. They are linked to the corresponding posts. In the column it works but I cannot get the exact same code have the images show in the widget.

    <?php if ( is_page('') ) { ?>
    <?php $my_query = new WP_Query('category_name=vip&showposts=18&offset=1');
    while ($my_query->have_posts()) : $my_query->the_post(); ?>
    <?php the_excerpt(); ?>

    <?php endwhile; ?>
    <?php } ?>

    What would I have to do to mke the images show?

    http://wordpress.org/extend/plugins/php-code-widget/

Topic Closed

This topic has been closed to new replies.

About this Topic