• Resolved pweingart

    (@pweingart)


    When I embed an image in a post, and use a relative pathname, where does WordPress get the default path to complete a fully-qualified pathname to the image? What variable in what table, or what configuration item, controls this value?

    Example: I use the pathname for the image, “images/mypic.jpg”. The actual fully-qualified filename is /var/www/html/images/mypic.jpg. Where does WordPress get “/var/www/html” from?

    Thanks.

Viewing 2 replies - 1 through 2 (of 2 total)
  • That blew my mind a bit at first, too – it’s this bit:

    \ img src=”<?php bloginfo(‘template_url’); ?>/headers/iStock_000005178151XSmall.jpg” alt=”oranges on tree” \

    tootallmatt

    (@tootallmatt)

    thank you for this

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Where does WordPress get default image directory?’ is closed to new replies.