Home › Forums › Product Support Forums › Ajax Search Pro for WordPress Support › No images showing
This topic contains 19 replies, has 2 voices, and was last updated by Ernest Marcinko 4 years, 6 months ago.
- AuthorPosts
- May 23, 2019 at 11:01 pm #22836
HI there
I am having (and always have had, even with the free version) trouble in getting any images to show in the search results.For now I would rather not include any log in details but I can assure you I have been trying to solve this for the past 4 days. I have read all the knowledge bases articles I can find and ALL the instructions, I have tried all permutations I can think of to no avail.
Please could you give me an up to date clue on where the images may be and how to get them to display.
I note that some of your articles are quite old now and may no longer be relevant..I am using a Sitemile Auction template, if that helps.
If you could give me a clue as to where i may start to look that would be much appreciated.. I am guessing that it can only be a custom field.
Also, is there any way to create a “radius search” using postcodes perhaps? If not, have you plans to maybe make this an upgrade any time in the future?
Many thanks
Regards
Wayne-
This topic was modified 4 years, 6 months ago by
Wayne.
May 24, 2019 at 1:06 pm #22848Hi Wayne,
I cannot tell much only from the front-end, but it seems like as if it’s an image gallery of some sort, I’m not sure. Try turning on this option, if there is any shortcode or anything attaching the images to the actual post content, then it may work.
Best,
Ernest Marcinko
If you like my products, don't forget to rate them on codecanyon :)
May 24, 2019 at 2:25 pm #22851You cannot access this content.May 27, 2019 at 8:46 am #22862You cannot access this content. Best,
Ernest Marcinko
If you like my products, don't forget to rate them on codecanyon :)
May 27, 2019 at 9:29 am #22868You cannot access this content.May 27, 2019 at 9:50 am #22871You cannot access this content.May 27, 2019 at 1:17 pm #22882You cannot access this content. Best,
Ernest Marcinko
If you like my products, don't forget to rate them on codecanyon :)
May 27, 2019 at 1:39 pm #22884You cannot access this content.May 27, 2019 at 1:43 pm #22885You cannot access this content.May 27, 2019 at 2:13 pm #22887You cannot access this content. Best,
Ernest Marcinko
If you like my products, don't forget to rate them on codecanyon :)
May 27, 2019 at 3:37 pm #22888You cannot access this content.May 28, 2019 at 9:20 am #22899Hi Wayne,
Thanks, I think I was able to resolve this. Based on the theme files, I have constructed and added the following code to the functions.php file in the child theme directory:
add_filter('asp_results', 'asp_fix_images_for_auction_theme', 10, 1); function asp_fix_images_for_auction_theme( $results ) { foreach ( $results as $k => &$r ) { if ( isset($r->post_type) ) { $id_of_firstpic = AuctionTheme_get_first_post_image_post_id($r->id); if ( !empty($id_of_firstpic) ) { $im = AuctionTheme_get_post_images_first($r->id,4); $img = AuctionTheme_wp_get_attachment_image($im, array(900, 700)); $r->image = $img; } } } return $results; }
It should display the images now.
Best,
Ernest Marcinko
If you like my products, don't forget to rate them on codecanyon :)
May 28, 2019 at 4:58 pm #22918You cannot access this content.May 29, 2019 at 7:58 am #22926You cannot access this content. Best,
Ernest Marcinko
If you like my products, don't forget to rate them on codecanyon :)
May 29, 2019 at 12:53 pm #22941You cannot access this content. -
This topic was modified 4 years, 6 months ago by
- AuthorPosts
You must be logged in to reply to this topic.