WordPress.org

Ready to get started?Download WordPress

Forums

Linking to images (3 posts)

  1. skromta
    Member
    Posted 3 years ago #

    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?

  2. froggyfrog
    Member
    Posted 3 years 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'); ?>

  3. skromta
    Member
    Posted 3 years ago #

    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?

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags

No tags yet.