Posted:June 7, 2005

Preparing to Blog – No Local Images

I have just spent an incredibly frustrating amount of time trying to figure out why I could not get images to display in WordPress. Use of a local server certainly adds to the challenge and complexity of learning about this stuff.

I ultimately realized that the internal link references needed to be like the local URL addresses in the browser. Localhost needs to be explicity spelled out, and also in the reference position for where the root Web server directory resides. Thus, for my local installation, this becomes:

<img alt="This is My Photo" src="http://localhost/wordpress/wp-content/themes/myTheme/images/myPhoto.jpg" />

This change to the relative addressing now has imaging displaying properly.

 

Author’s Note:  I actually decided to commit to a blog on April 27, 2005, and began recording soon thereafter my steps in doing so.  Because of work demands and other delays, the actual site was not released until July 18, 2005.  To give my ‘Prepare to Blog …’ postings a more contemporaneous feel, I arbitrarily changed posting dates on this series one month forward, which means some aspects of the actual blog were better developed than some of these earlier posts indicate.  However, the sequence and the content remain unchanged.  A re-factored complete guide will be posted at the conclusion of the ‘Prepare to Blog …’ series, targeted for release about August 18, 2005.  mkb

Schema.org Markup

headline:
Preparing to Blog – No Local Images

alternativeHeadline:

author:

image:

description:
I have just spent an incredibly frustrating amount of time trying to figure out why I could not get images to display in WordPress. Use of a local server certainly adds to the challenge and complexity of learning about this stuff. I ultimately realized that the internal link references needed to be like the local […]

articleBody:
see above

datePublished:

Leave a Reply

Your email address will not be published. Required fields are marked *