Forums

[resolved] Problems with blog_info('url') (3 posts)

  1. intothewhite
    Member
    Posted 1 year ago #

    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

  2. Otto42
    Moderator
    Posted 1 year ago #

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

    Do you see the difference between these two things?

  3. intothewhite
    Member
    Posted 1 year ago #

    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

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags

No tags yet.