Support » Fixing WordPress » Linking to images

  • 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?

Viewing 2 replies - 1 through 2 (of 2 total)
  • 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?

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Linking to images’ is closed to new replies.