• Resolved cableghost

    (@cableghost)


    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'); ?>

Viewing 3 replies - 1 through 3 (of 3 total)
  • 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. 😛

    Thread Starter cableghost

    (@cableghost)

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

    Thanks!

    -Scott

    Glad it helped!

Viewing 3 replies - 1 through 3 (of 3 total)

The topic ‘Active PHP URL’ is closed to new replies.