Home › Forums › Product Support Forums › Ajax Search Pro for WordPress Support › No images showing
- This topic has 19 replies, 2 voices, and was last updated 7 years ago by
Ernest Marcinko.
-
AuthorPosts
-
May 23, 2019 at 11:01 pm #22836
Wayne
ParticipantHI 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 7 years ago by
Wayne.
May 24, 2019 at 1:06 pm #22848Ernest Marcinko
KeymasterHi 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.
May 24, 2019 at 2:25 pm #22851Wayne
ParticipantYou cannot access this content.
May 27, 2019 at 8:46 am #22862Ernest Marcinko
KeymasterYou cannot access this content.
May 27, 2019 at 9:29 am #22868Wayne
ParticipantYou cannot access this content.
May 27, 2019 at 9:50 am #22871Wayne
ParticipantYou cannot access this content.
May 27, 2019 at 1:17 pm #22882Ernest Marcinko
KeymasterYou cannot access this content.
May 27, 2019 at 1:39 pm #22884Wayne
ParticipantYou cannot access this content.
May 27, 2019 at 1:43 pm #22885Wayne
ParticipantYou cannot access this content.
May 27, 2019 at 2:13 pm #22887Ernest Marcinko
KeymasterYou cannot access this content.
May 27, 2019 at 3:37 pm #22888Wayne
ParticipantYou cannot access this content.
May 28, 2019 at 9:20 am #22899Ernest Marcinko
KeymasterHi 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.
May 28, 2019 at 4:58 pm #22918Wayne
ParticipantYou cannot access this content.
May 29, 2019 at 7:58 am #22926Ernest Marcinko
KeymasterYou cannot access this content.
May 29, 2019 at 12:53 pm #22941Wayne
ParticipantYou cannot access this content.
-
This topic was modified 7 years ago by
-
AuthorPosts
- You must be logged in to reply to this topic.