This website uses cookies to personalize your experience. By using this website you agree to our cookie policy.

No images showing

Viewing 15 posts - 1 through 15 (of 20 total)
  • Author
    Posts
  • #22836
    WayneWayne
    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 7 years ago by WayneWayne.
    #22848
    Ernest MarcinkoErnest 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.

    #22851
    WayneWayne
    Participant

    You cannot access this content.

    #22862
    Ernest MarcinkoErnest Marcinko
    Keymaster

    You cannot access this content.

    #22868
    WayneWayne
    Participant

    You cannot access this content.

    #22871
    WayneWayne
    Participant

    You cannot access this content.

    #22882
    Ernest MarcinkoErnest Marcinko
    Keymaster

    You cannot access this content.

    #22884
    WayneWayne
    Participant

    You cannot access this content.

    #22885
    WayneWayne
    Participant

    You cannot access this content.

    #22887
    Ernest MarcinkoErnest Marcinko
    Keymaster

    You cannot access this content.

    #22888
    WayneWayne
    Participant

    You cannot access this content.

    #22899
    Ernest MarcinkoErnest 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.

    #22918
    WayneWayne
    Participant

    You cannot access this content.

    #22926
    Ernest MarcinkoErnest Marcinko
    Keymaster

    You cannot access this content.

    #22941
    WayneWayne
    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.