One thing I've never understood with wordpress is how I can add images to a post without using absolute paths. I see that I can do using NextGenGallery but I assume that it's possible to do in "plain WP" also but I can't figure out how.
Does anyone know how to do this?
froggyfrog
Member
Posted 1 year ago #
Hi there,
If you add this bit of code before your images/imagename.jpg then that will link to the images folder for your current active theme.
<?php bloginfo('template_directory'); ?>
Stupid question, but you write "the images folder for your current active theme" ... does this mean that it doesn't work for photos that have been uploaded using XML-RPC or the built-in upload feature?