WordPress.org

Ready to get started?Download WordPress

Forums

Multiple Featured Images
How to insert into get_the_image (1 post)

  1. cooketsc
    Member
    Posted 1 year ago #

    Hi there.

    I'd like to insert the code into a get_the_image line.
    Ideally replacing both of these lines with the appropriate code/replacing the right bits.
    The first get_the_image is a list view and second a grid view.
    Can't quite manage it at the moment.

    get_the_image( array( 'size' => 'post-list', 'width' => 608, 'height' => 192, 'image_class' => 'rounded', 'link_to_post' => false, 'before' => '<a class="list_thumb" href="'.$permalink.'"><span class="hborder"></span>', 'after' => '</a><div class="image_padder"></div>' ) );   
    
    get_the_image( array( 'size' => 'post-grid', 'width' => 300, 'height' => 192, 'image_class' => 'rounded', 'link_to_post' => false, 'before' => '<a class="grid_thumb" href="'.$permalink.'"><span class="hborder"></span>', 'after' => '</a><div class="grid_padder"></div>' ) );

    Thanks

    http://wordpress.org/plugins/multiple-featured-images/

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic

Tags