Image path problems
-
I’ve installed the raw html plugin and turned off the visual editor in my profile to be able to have more control over the formatting of my posts. Embedded images show up fine on the home page, but have path problems in the archives and comment pages because of the dynamic directory structure
I have been hard coding my image paths inside posts
<img src=”wp-content/themes/black-minimalism-10/images/vd_competitive.gif” />I can see that’s problematic and have found I should be using something like <?php bloginfo(‘template_directory’); ?>/images/vd_competitive.gif”
Since I’m operating inside the raw plugin tags… <!–start_raw__><!–end_raw–> do I need to escape the bloginfo tag.
This should be simple. Do the template tags only work in the visual editor context. Help, this simple issue is really frustrating and I’ve found several threads on much the same topic but none anticipate the raw html issue.
The topic ‘Image path problems’ is closed to new replies.