Forums › Forums › Search & Filter Pro › Ajax and Amazon Cloudfront CDN images not showing
- This topic has 3 replies, 2 voices, and was last updated 9 years, 11 months ago by Ross.
-
Anonymous(Private) December 16, 2014 at 5:26 pm #9135
Hey,
We’re using Search & Filter pro with ajax to show our listings.
We’re also using Amazon Cloudfront to host the images. They show fine everywhere on the site, apart from within the search results by Search & Filter Pro.
Search & Filter Pro just serves is associating the wrong url with the image.
Any ideas how to fix this?
Rich
Ross Moderator(Private) December 16, 2014 at 10:36 pm #9163Hey Rich
How are you using the plugin, using a shortcode?
If this is the case, then I suspect the WordPress function
the_post_thumbnail
is not the correct way to retrieve your Amazon Cloudfront URL?If you are indeed using the shortcode for results and experiencing these problems, then you will need to follow the steps here in regards to copying the S&F template files over, and replacing
the_post_thumbnail
with whatever is require by the CDN.If however your are not using a shortcode, let me know and we can try some other things…
Thanks
Ross Moderator(Private) December 17, 2014 at 12:13 am #9185Hey Rich
I’m not sure, how are you setting up your CDN, how do regular page templates work in your theme?
I would take a look at other template files in your theme to see if they are using
the_thumbnail
– it also may be possible that ajax requests don’t load the CDN plugins/code as the ajax URL is considered an admin URL (admin-ajax.php), however, on page load they should (as ajax is not used then)…Thanks
-
AuthorPosts