WordPress.org

Support

Support » Plugins and Hacks » [Plugin: PHP Code Widget] Showing only excerpts (images) in this widget

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

  • Sakshin
    Member

    @sakshin

    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/

  • The topic ‘[Plugin: PHP Code Widget] Showing only excerpts (images) in this widget’ is closed to new replies.