- This topic has 8 replies, 2 voices, and was last updated 8 years, 7 months ago by
Tom.
-
AuthorPosts
-
February 15, 2015 at 10:34 pm #75293
Souvik
The images in the post are served by WordPress CDN(i.e. Jetpack Photon) but featured image is not. You can check any blog post from my website.
Here is an example post:
http://www.rswebsols.com/tutorials/ecommerce-tutorials/infinite-scrolling-kill-ecommerce
How can I achieve this?
February 16, 2015 at 10:11 am #75491Souvik
FYI: Featured Image of Home page is serving from CDN. But it is not working on single post page.
Example:
Working on home page: http://www.rswebsols.com/
Not working on single post page: http://www.rswebsols.com/tutorials/ecommerce-tutorials/infinite-scrolling-kill-ecommerce
February 16, 2015 at 11:44 am #75573Tom
Lead DeveloperLead DeveloperGreat site! Would love to use it in our showcase if you’re willing π
Just took a look at the single post and it looks like the featured image is coming from a CDN (check the source URL).
February 16, 2015 at 9:58 pm #75773Souvik
Actually that is not a cdn. It is only a sub-domain of my own website. I moved the WordPress content folder to a sub-domain of my website (i.e. cdn.rswebsols.com).
But if you notice the home page, the featured image is actually serving from WordPress CDN.
Example:
Article Name => “DOES INFINITE SCROLLING KILL ECOMMERCE? β A COMPLETE GUIDE”.
—————
In home page (http://www.rswebsols.com/) => The URL of the featured image is:
—————
In article page (http://www.rswebsols.com/tutorials/ecommerce-tutorials/infinite-scrolling-kill-ecommerce) => The URL of the featured image is:
http://cdn.rswebsols.com/media/uploads/2015/02/infinite-scrolling-kill-ecommerce.jpg
—————
And you are welcome to showcase my website. π
Regards,
SouvikFebruary 17, 2015 at 5:40 pm #76087Tom
Lead DeveloperLead DeveloperAwesome, thank you!
That’s very odd – the image is included in the theme the same way for the homepage and single posts.
Does the CDN have any settings or anything? Any reason it might ignore some images?
February 17, 2015 at 9:39 pm #76109Souvik
There is no settings. It automatically convert image urls so it serves from cdn.
But I got one link related to my problem and may be there is a possible solution. But I am not figuring it out. Can you please look into it once?
https://wordpress.org/support/topic/featured-image-is-not-served-by-wordpress-cdn?replies=5
February 17, 2015 at 11:52 pm #76132Tom
Lead DeveloperLead DeveloperAre you using Page Header or Generate Blog?
I’ll look into this further and hopefully supply a fix π
February 18, 2015 at 12:58 am #76152Souvik
I am using Generate Blog.
February 18, 2015 at 12:09 pm #76345Tom
Lead DeveloperLead DeveloperPerfect, I’ve made some changes to Generate Blog so that is uses
the_post_thumbnail()
in the next version.That should fix this issue π
-
AuthorPosts
- You must be logged in to reply to this topic.