Home / Forums / ePix Support / thumbs/images for search results – how?

Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts

  • oliver schultz
    Participant

    hello,

    I would like a search-result page that also shows (featuresd) images and/or/as thumbs. – possible?

    thx for help!


    Tom ( Support)
    Keymaster

    Hi Oliver,

    Technically this is a customization but this might be implemented in the future so heres the code.

    Locate the file search.php, under DynamiX/search.php via FTP.

    Add this code,

    <?php if ( has_post_thumbnail() ) { // check if the post has a Post Thumbnail assigned to it.
      the_post_thumbnail( array(80,80) );
    }; ?>
    

    Above

    <h3 id="post-<?php the_ID(); ?>

    Hope this helps.
    Kind regards,
    Tom


    oliver schultz
    Participant

    thx a great lot! it totally helped 😀

Viewing 3 posts - 1 through 3 (of 3 total)

You must be logged in to reply to this topic.