• Resolved intothewhite

    (@intothewhite)


    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> &raquo; <a href="<?php get_bloginfo('url'); ?>/the-archives">Archive</a> &raquo; <?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 to my home page/the-archives rather than my home page/blog/the-archives.

    Any ideas why this would be the case?

    TIA,

    Leon

Viewing 2 replies - 1 through 2 (of 2 total)
  • Moderator Samuel Wood (Otto)

    (@otto42)

    WordPress.org Admin

    <?php echo get_bloginfo('url'); ?>
    ...
    <?php get_bloginfo('url'); ?>

    Do you see the difference between these two things?

    Thread Starter intothewhite

    (@intothewhite)

    Oops – spotted about 20 seconds after posting here.

    Square eyes as been working on this all day.

    Need a break!

    Thanks for looking at it anyway!

    Leon

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Problems with blog_info(‘url’)’ is closed to new replies.