-
AuthorPosts
-
September 9, 2016 at 10:23 pm #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!
DorisSeptember 12, 2016 at 4:22 pm #685243Hey Doris5ricevic,
Please refer to this post – https://kriesi.at/support/topic/add-featured-image-to-search-results/#post-249161
Best regards,
YigitSeptember 12, 2016 at 7:57 pm #685323Hy,
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 31What 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):
// EDITEDSeptember 13, 2016 at 1:15 pm #685726Hi,
Can you please post temporary admin logins and FTP logins here privately so we can look into it?
Best regards,
YigitSeptember 13, 2016 at 1:45 pm #685747Hi,
yes, please.Thank you!
Best regards!
DorisSeptember 18, 2016 at 7:59 am #688067Hi,
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,
IsmaelSeptember 18, 2016 at 5:40 pm #688154Hi 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!
DorisSeptember 18, 2016 at 7:37 pm #688180Hey!
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 -
AuthorPosts
- The topic ‘Result Page’ is closed to new replies.