Viewing 8 posts - 1 through 8 (of 8 total)
  • Author
    Posts
  • #684365

    Dear support,

    I’m using the plugin Ultimate WP Query Search Filter and I have chosen the default search template, which means that the enfold theme is doing the look of the result page. Now, when the result page is displayed, there is in content: number, title (with link), and taxonomies which are inside the page which is shown as a result. I would like to know is there any possibility to make the result with the picture, maybe to enter something in php file for search result, or loop php for search. It would be great if I can put the featured image in page and when the result is shown, with the number, title and taxonomies you can see the featured image. This is the site, when you click on “rent me” or “buy me” button, you get the search which is made with the plugin I mentioned in the first sentence, and then you can search something to see the result page (the easiest way to see it is to click “rent me” button and search the villa by the name).

    I hope you understand what I wanted to say. If not, please ask me and I would be pleased to try to explain you in a different way.
    Best wishes!
    Doris

    #685243

    Hey Doris5ricevic,

    Please refer to this post – https://kriesi.at/support/topic/add-featured-image-to-search-results/#post-249161

    Best regards,
    Yigit

    #685323

    Hy,
    I did everything what there was written, and I get the picture, but with this errors:
    1.Notice: Undefined variable: post_id in E:\Websites\key2istr\key2istria.com\wwwroot\wp-content\themes\enfold\includes\loop-search.php on line 31
    2. Notice: Undefined variable: size in E:\Websites\key2istr\key2istria.com\wwwroot\wp-content\themes\enfold\includes\loop-search.php on line 31
    3. Notice: Undefined variable: attr in E:\Websites\key2istr\key2istria.com\wwwroot\wp-content\themes\enfold\includes\loop-search.php on line 31

    What is the problem, what should I change? :/

    Thank you, you are really helping me a lot!

    P.S. This is how my loop-search.php looks now (I bolded what I added):
    // EDITED

    #685726

    Hi,

    Can you please post temporary admin logins and FTP logins here privately so we can look into it?

    Best regards,
    Yigit

    #685747

    Hi,
    yes, please.

    Thank you!
    Best regards!
    Doris

    #688067

    Hi,

    I tried to access the site via FTP but I can’t get in. Are you sure the ftp url is correct? Replace the code with this line:

    $searchthumb = get_the_post_thumbnail( $the_id, 'large' );
     echo "<span class='search-result-counter {$counterclass}'>{$searchthumb}</span>";
    

    Best regards,
    Ismael

    #688154

    Hi dear support,

    I really don’t know why you couldn’t enter, it was correct. But, this code worked! :D
    Now, I don’t see any mistake :)

    Thank you very much!
    Best wishes!
    Doris

    #688180

    Hey!

    Happy we could help you out.
    Please do not hesitate to ask us, if we could do anothing else for you.
    We would be happy to help further.

    Regards,
    Basilis

Viewing 8 posts - 1 through 8 (of 8 total)
  • The topic ‘Result Page’ is closed to new replies.