WordPress.org

Ready to get started?Download WordPress

Forums

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

  1. yuniar
    Member
    Posted 8 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. Try this instead:

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

    http://codex.wordpress.org/Template_Tags/bloginfo

Topic Closed

This topic has been closed to new replies.

About this Topic