WordPress.org

Ready to get started?Download WordPress

Forums

simplest way of getting site URL besides bloginfo(url)? (3 posts)

  1. fuelcell
    Member
    Posted 9 years ago #

    The problem with bloginfo('url') is that it actually prints the site url on the page. Is there any other way of getting the site url? I'm working on making some code more portable and this has become a roadblock for me.

  2. Kafkaesqui

    Posted 9 years ago #

    get_settings('siteurl')

    This will return the site url instead of displaying it.

  3. fuelcell
    Member
    Posted 9 years ago #

    that did it

    thanks

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags

No tags yet.