Forums

bloginfo() (5 posts)

  1. rayge
    Member
    Posted 3 years ago #

    Where does this function pull its info from? Im trying to move a site i had on my development machine to the live hosting area and modify the paths to match.

  2. NC@WP
    Member
    Posted 3 years ago #

    The database. More specifically, the [prefix]options table, where [prefix] is the table prefix you specified during installation (defaults to wp_).

  3. rayge
    Member
    Posted 3 years ago #

    Thanks!

  4. live627
    Member
    Posted 2 years ago #

    What is the difference between bloginfo() and get_options?

  5. NC@WP
    Member
    Posted 2 years ago #

    live627,

    The Codex is your friend:

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

    If you want a short answer, bloginfo() has access to about 20 settings, while get_option() allows you to retrieve all options that are defined. A list of those options is available here:

    http://codex.wordpress.org/Option_Reference

    Additionally, bloginfo() outputs the values, while get_option() returns them for programmatic use. There is also get_bloginfo() that works just like bloginfo(), except it returns values like get_option() does.

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags

No tags yet.