Support » Plugins and Hacks » How to insert into get_the_image

How to insert into get_the_image

  • 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>' ) );



  • The topic ‘How to insert into get_the_image’ is closed to new replies.