No images showing

This topic contains 19 replies, has 2 voices, and was last updated by

 
Keymaster
2 years, 7 months ago.

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

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

    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

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

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


    #22868

    Participant
    You cannot access this content.
    #22871

    Participant
    You cannot access this content.
    #22882
    You cannot access this content. Best,
    Ernest Marcinko

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


    #22884

    Participant
    You cannot access this content.
    #22885

    Participant
    You cannot access this content.
    #22887
    You cannot access this content. Best,
    Ernest Marcinko

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


    #22888

    Participant
    You cannot access this content.
    #22899

    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

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

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


    #22941

    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.