WordPress.org

Forums

Domain grabbing (2 posts)

  1. Ozzin
    Member
    Posted 1 year ago #

    Is there a function for printing the domain name you set in settings via the admin panel?

    It would be helpful for a lot of things.

  2. esmi
    Theme Diva & Forum Moderator
    Posted 1 year ago #

    Site Url: <?php echo get_options( 'siteurl' );?><br />
    WordPress Url: <?php echo get_options( 'home' );?>

    http://codex.wordpress.org/Function_Reference/get_option
    http://codex.wordpress.org/Option_Reference

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags

No tags yet.