[Plugin: Recent Posts Slider] No images because of subdomain?
I have WordPress installed on a subdomain and I think this is the reason the images aren’t appearing. The plugin is finding the images in the posts but when it tries to resize them for the slider the image file isn’t found. the subfolder is not being added to the image path. Is there an easy way to set things up for a subdomain? I have thought of:
1) Changing every $_SERVER[‘DOCUMENT_ROOT’] to $_SERVER[‘DOCUMENT_ROOT’].’/sub-folder/’. Not desirable because when I move the site live (off the subdomain) I have to go through and remove them all.
2) Set a global variable, with the sub-folder, at the top of recent-post-slider.php and add $_SERVER[‘DOCUMENT_ROOT’].$globalSubFolder. Easy change when going live. I haven’t had a lot of success with globals so any advice on this would be appreciated.
Does anyone have any other suggestions? Would there be an easier way to implement subdomain support? I suppose I could be completely barking up the wrong tree.
- The topic ‘[Plugin: Recent Posts Slider] No images because of subdomain?’ is closed to new replies.