No, you have to use absolute or bloginfo()-based linked. Relative links use the current URL as a base, hence your problem.
Thanks for your quick reply.
But i saw on this website from wordpress gallery http://modernistcuisine.com/about-the-authors/, that’s using relative path..
It looks like that website is using a full URL for the links unless I am missing something.
The most sure-fire way to make sure your links are right are right is to use the bloginfo() based links. This will insure that your links will be current even if you change your site’s base URL.
Sorry I forgot to mention it’s the image src on http://modernistcuisine.com/about-the-authors/ that’s using relative path.
About the bloginfo(), does that mean i need to instal specific plugin for wordpress to read PHP code?
Because at the moment it only reads HTML, no PHP capabilities.
If you’re looking to embed images in your posts/pages you should use the Media Library to add an image by URL, or either upload it to your site.
Thanks dcannon1.
I’ve tried to use both method you told me. Apparently it’s using absolute path, I’m not really keen on doing the absolute path. As you said, once we change the directory, that wouldn’t work. Could you please tell me how to use bloginfo() method inside the post section?
There are some plugins which will parse PHP in the content, but I wouldn’t think this would be ideal. It would be very easy to break your site just from adding content.
Herm..it’s true, but don’t you think it would be hard for clients which is not tech savvy to type in the absolute path..unless they choose the image from media library off course. Please advice me if I’m wrong 🙂
If they don’t already know the absolute path, all they need to do is view the image in their browser and copy the URL. However, adding images with the “Add an Image” button (to the right of “Upload/Insert” above the post area) is by far the easiest method, and it uses the absolute path.
Ok, thanks guys for your help.
It’s very helpful 🙂