styling search results

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)

Search & Filter Support
Privacy Overview

This website uses cookies so that we can provide you with the best user experience possible. Cookie information is stored in your browser and performs functions such as recognising you when you return to our website and helping our team to understand which sections of the website you find most interesting and useful.

We also use cookies to store items in your cart as well as allowing your to login on the site.

You can adjust all of your cookie settings by navigating the tabs on the left hand side.

By continuing to use this site, you also agree to our Privacy Policy.