• Resolved jeanettegibsonjg

    (@jeanettegibsonjg)


    Thank you for a great plugin that enables me to effectively include images & captions in the search results. Kindly advise as to how to include the image / image thumbnail in the search results of images.

    I hope this is clear enough to enable you to answer.

    I look forward to hearing from you.

    • This topic was modified 2 years, 7 months ago by Jan Dembowski. Reason: Title decapped, please don't yell

    The page I need help with: [log in to see the link]

Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Author Sumit Singh

    (@5um17)

    Hi,

    Thanks for the feedback!

    The layout of display depends on the theme. This plugin just includes the items in search results.
    So the modifications are needs to be done in your theme. I can just give you an idea, how you can do this.
    You need to find the search results template. The default template is search.php. Edit this template and add this code

    
    if ('attachment' === get_post_type(get_the_ID())) {
    	echo wp_get_attachment_image(get_the_ID());
    }
    

    You can modify this code as per your need. This is just an example.

    Or you can approach your theme support they can assist you better.

    Thanks

    Thread Starter jeanettegibsonjg

    (@jeanettegibsonjg)

    Thank you for taking the time to reply to me Sumit. Your time and input is highly appreciated.

    Best wishes

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘image / image thumbnail in image search results’ is closed to new replies.