Problems with blog_info(‘url’)
-
I’m having a strange problem generating a breadcrumb using
blog_info('url')
. The code I’m using is:<h2><a href="<?php echo get_bloginfo('url'); ?>">Home</a> » <a href="<?php get_bloginfo('url'); ?>/the-archives">Archive</a> » <?php the_title(); ?></h2>
You can see an example of what happens here.
The home page link is generated with no problems, but the link to the archive page
../the-archives
misses out the blog directory for some reason, so it refers tomy home page/the-archives
rather thanmy home page/blog/the-archives
.Any ideas why this would be the case?
TIA,
Leon
Viewing 2 replies - 1 through 2 (of 2 total)
Viewing 2 replies - 1 through 2 (of 2 total)
- The topic ‘Problems with blog_info(‘url’)’ is closed to new replies.