No images showing

This topic contains 19 replies, has 2 voices, and was last updated by Ernest Marcinko Ernest Marcinko 3 years, 2 months ago.

Viewing 15 posts - 1 through 15 (of 20 total)
  • Author
    Posts
  • #22836
    Wayne
    Wayne
    Participant

    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 3 years, 2 months ago by Wayne Wayne.
    #22848
    Ernest Marcinko
    Ernest Marcinko
    Keymaster

    Hi 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 :)


    #22851
    Wayne
    Wayne
    Participant
    You cannot access this content.
    #22862
    Ernest Marcinko
    Ernest Marcinko
    Keymaster
    You cannot access this content. Best,
    Ernest Marcinko

    If you like my products, don't forget to rate them on codecanyon :)


    #22868
    Wayne
    Wayne
    Participant
    You cannot access this content.
    #22871
    Wayne
    Wayne
    Participant
    You cannot access this content.
    #22882
    Ernest Marcinko
    Ernest Marcinko
    Keymaster
    You cannot access this content. Best,
    Ernest Marcinko

    If you like my products, don't forget to rate them on codecanyon :)


    #22884
    Wayne
    Wayne
    Participant
    You cannot access this content.
    #22885
    Wayne
    Wayne
    Participant
    You cannot access this content.
    #22887
    Ernest Marcinko
    Ernest Marcinko
    Keymaster
    You cannot access this content. Best,
    Ernest Marcinko

    If you like my products, don't forget to rate them on codecanyon :)


    #22888
    Wayne
    Wayne
    Participant
    You cannot access this content.
    #22899
    Ernest Marcinko
    Ernest Marcinko
    Keymaster

    Hi 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 :)


    #22918
    Wayne
    Wayne
    Participant
    You cannot access this content.
    #22926
    Ernest Marcinko
    Ernest Marcinko
    Keymaster
    You cannot access this content. Best,
    Ernest Marcinko

    If you like my products, don't forget to rate them on codecanyon :)


    #22941
    Wayne
    Wayne
    Participant
    You cannot access this content.
Viewing 15 posts - 1 through 15 (of 20 total)

You must be logged in to reply to this topic.