Support » Theme: Reviewgine Affiliate » search.php

  • Resolved mistercomparador


    hi everybody,
    I’ve 4 post. All of them have a featured image. When I use the search (widget), the results haven’t image. Why? Can you help me?

Viewing 1 replies (of 1 total)
  • Already OK,
    In search.php, I put:

    <?php global $post; $post_featured_image = wp_get_attachment_url(get_post_thumbnail_id($post->ID)); ?>

    after of:

    <?php if(have_posts()) { while ( have_posts() ) : the_post() ?>

    I hope this can help another users!

    [Moderator Note: Please post code & markup between backticks or use the code button. Your posted code may now have been permanently damaged by the forum’s parser.]

Viewing 1 replies (of 1 total)
  • The topic ‘search.php’ is closed to new replies.