Codex tools: Log in / create account
This function has been deprecated. That means it has been replaced by a new function or is no longer supported, and may be removed from future versions. All code that uses this function should be converted to use its replacement if one exists.
Contents |
Instead of get_settings, use get_option($optionname)
A safe way of getting values for a named option from the options database table.
For a complete list of all options available through this function, go to
http://www.yoursite.com/wp-admin/options.php
Also: You can modify any/all of the options from the same page.
get_option($optionname)
This is a wrapper around the get_settings function, added for readability and a more humane interface.
<?php echo get_settings('show'); ?>
or
<?php echo get_option('show'); ?>
Displays your blog's title in a <h1> tag.
<h1><?php echo get_settings('blogname'); ?></h1> or
<h1><?php echo get_option('blogname'); ?></h1>
Displays the character set your blog is using (ex: UTF-8)
<p>Character set: <?php echo get_settings('blog_charset'); ?> </p> or
<p>Character set: <?php echo get_option('blog_charset'); ?> </p>
Retrieve the e-mail of the blog administrator, storing it in a variable.
<?php $admin_email = get_settings('admin_email'); ?> or
<?php $admin_email = get_option('admin_email'); ?>
bloginfo, bloginfo_rss, get_bloginfo, get_bloginfo_rss, wp_title, get_archives, wp_get_archives, get_calendar, get_posts, wp_list_pages, wp_dropdown_pages, wp_loginout, wp_register, query_posts, rss_enclosure