Support Forums

The forums are closed and will be removed when we launch our new site.

Looking for support? You can access the support system via your account.

Forums Forums Search & Filter Pro styling search results

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

    Attempt #3:

    <div class="searchresults1"><?php 
      if ( has_post_thumbnail() ) {
        echo '<a href="' . the_permalink() . '">';
        the_post_thumbnail("small");
        echo '</a>';
      }
    ?></div>
    Ali Goodarzi
    #245039
    This reply has been marked as private.
    Trevor Moderator
    #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?

    Ali Goodarzi
    #245055

    DUUUUUUUUUUUUDE, it worked.

    Thank you so much man!

    Trevor Moderator
    #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)

The topic ‘styling search results’ is closed to new replies.