How to make relative links in Pages/Posts?
-
When I build templates, I use
<?php bloginfo('url'); ?>
for links and<?php bloginfo('template_url') ?>
for images- to avoid making absolute links in my template files. I’d like to do something similar for a couple image and URL links I’ve made in a Post, so that when I change the directory of my WordPress installation on my server I won’t break them.What is the correct way to achieve this?
- The topic ‘How to make relative links in Pages/Posts?’ is closed to new replies.