get_bloginfo("wpurl") weirdness? (2 posts)

  1. yuniar
    Posted 9 years ago #

    Hi, im using get_bloginfo("wpurl") function to get the URL for WordPress installation. But sometimes it gives me an address like http://www.mydomain.com and the other time it gives me mydomain.com (without www).

    Why is this happened? I need to get the full URL (with www) anybody know any other way?

    Thanks for the help

  2. James Huff
    Volunteer Moderator
    Posted 9 years ago #

    Try this instead:

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


Topic Closed

This topic has been closed to new replies.

About this Topic