• Hey there,

    I would like to make the listing images appear while using ajax search lite for search results. The available options for featured images, post excerpt, post content doesn’t seem to detect any images at all so they return nothing. There doesn’t seem to be any custom fields that return the actual url that we could use either. How could we get this working? It would be really easy for clients to see the images in the search results.

Viewing 6 replies - 1 through 6 (of 6 total)
  • Plugin Support Ali Akbar Reyad

    (@alireyad)

    Hi,
    We have search widget and where appear listing image in search results. We don’t have AJAX search option in filter. Did you customize search? or using any plugin for AJAX search?
    Which theme are you using?

    Thank you

    Thread Starter Niko Vittaniemi

    (@nikov)

    Hey @alireyad

    Thanks for the reply. I’m using ajax search lite that allows further customization of the search.

    Plugin Support Ali Akbar Reyad

    (@alireyad)

    Hi,
    Okay then you have to customize that plugin search results.

    Thank you

    Thread Starter Niko Vittaniemi

    (@nikov)

    Hey @alireyad

    Could you tell me what field returns an image url of a listing? Do you have any special custom fields that would do this?

    Plugin Support Ali Akbar Reyad

    (@alireyad)

    Hi,
    When getting search results, you can check post is that from listing or not. If listing you can create a listing object by post id –

    $listing = rtcl()->factory->get_listing( get_the_ID() );
     echo $listing->get_the_thumbnail(); // to print
     $img = $listing->get_the_thumbnail(); // also can store in varialbe

    Thank you

    Thread Starter Niko Vittaniemi

    (@nikov)

    Hi,

    Thanks this guides me to the right direction

Viewing 6 replies - 1 through 6 (of 6 total)
  • The topic ‘What is the custom field for listing images?’ is closed to new replies.