Forums Forums Search & Filter Pro styling search results

Viewing 6 posts - 11 through 16 (of 16 total)
  • Anonymous
    #245003
    This reply has been marked as private.
    Trevor
    #245029

    Attempt #3:

    <div class="searchresults1"><?php 
      if ( has_post_thumbnail() ) {
        echo '<a href="' . the_permalink() . '">';
        the_post_thumbnail("small");
        echo '</a>';
      }
    ?></div>
    Anonymous
    #245039
    This reply has been marked as private.
    Trevor
    #245044
    <div class="searchresults1"><?php 
      if ( has_post_thumbnail() ) {
        echo '<a href="' . the_permalink() . '">';
        the_post_thumbnail("small");
        echo '</a>';
      }
    ?></div>
    <div class="searchresults1"><?php
    if ( has_post_thumbnail() ) { ?>
      <a alt="<?php esc_html(get_the_post_thumbnail_caption());?>" href="<?php the_permalink(); ?>"><?php the_post_thumbnail("small");?></a>
    <?php	} ?></div>

    maybe?

    Anonymous
    #245055

    DUUUUUUUUUUUUDE, it worked.

    Thank you so much man!

    Trevor
    #245059

    That was not easy. PHP was running its bit before some of the HTML was echoed.

    I will close this thread for now.

Viewing 6 posts - 11 through 16 (of 16 total)