Forums

[resolved] Active PHP URL (4 posts)

  1. cableghost
    Member
    Posted 2 years ago #

    I'm using the following code in my copyright, but the url generated is not active, it is simply displayed. Is there an automatic means of making such a url active?

    <?php bloginfo('url'); ?>

  2. ClaytonJames
    Member
    Posted 2 years ago #

    Okay. I'm laughing pretty hard at myself right now, because:

    1) This actually worked, and

    2) It can't possibly be correct.

    <a href="<?php bloginfo('url'); ?>"><?php bloginfo('url'); ?></a>

    And yet it displays the blog url as an active link. I'm such a butcher.

    These work too;

    <a href="<?php echo get_option('home'); ?>"><?php bloginfo('name'); ?></a>

    <a href="<?php bloginfo('url'); ?>"><?php bloginfo('name'); ?></a>

    I hope someone offers a better solution. :P

  3. cableghost
    Member
    Posted 2 years ago #

    Excellent. It must be ok authoring, because it does not trip W3C.

    Thanks!

    -Scott

  4. ClaytonJames
    Member
    Posted 2 years ago #

    Glad it helped!

Topic Closed

This topic has been closed to new replies.

About this Topic