#4749 closed defect (bug) (invalid)
bloginfo returing invalid results
Reported by: |
|
Owned by: | |
---|---|---|---|
Milestone: | Priority: | normal | |
Severity: | normal | Version: | |
Component: | General | Keywords: | |
Focuses: | Cc: |
Description
I upgraded to 2.2.2.
I have an extra option field called "description" to the database which allowed me to add a more detailed description of my blog which I put in the sidebar. Better from my point of view that a static home page.
It shows up in Admin and I can put data into it. But on the site, it just displays the title/detail:
<?php bloginfo('description'); ?>
I thought there might be a clash of name. But then I used
<?php bloginfo('description'); ?>
<?php bloginfo('rubbish'); ?>
in the sidebar and it showed detail field twice.
This used to work under 2.0.5.
Change History (3)
#2
@
18 years ago
- Keywords bloginfo removed
- Milestone 2.4 (future) deleted
- Resolution set to invalid
- Status changed from new to closed
- Version 2.2.2 deleted
Marking as invalid due to improper use of bloginfo()
and therefore not a true issue.
This ticket was mentioned in Slack in #cli by schlessera. View the logs.
7 years ago
Note: See
TracTickets for help on using
tickets.
bloginfo()
has a pre-defined set of items which it returns, One of them is 'description'wp-includes/general-template.php:
When you call
bloginfo('description')
it returns the options value of 'blogdescription'. (I'm basing this on 2.2.1)That Description is set via Admin->Options->"Tagline:"
Else if you defined a custom option, and wanted to display that, you'd use:
echo get_option('my_custom_option');
D