How to get the "About" information to display when creating a Wordpress theme?
I am developing a custom Wordpress theme and I need a space where I can display the about information. When I say the about information I mean information about the particular blog or site, not about the theme or me as a developer.
For example if the theme was applied to a blog for a hot dog stand the about information would say "We are Hot Dogs Empire, established in 1991 in Greenville ...".
I know there are a few wordpress theme functions like get_header and get_footer, I'm wondering if there is a function like this that would allow me to write my template for the theme so that whenever it is applied to a blog the blogs about information will be displayed in a certain space?
Thanks!
Solutions
You can do this with wordpress
settings API
https://codex.wordpress.org/Settings_API.
Description from wordpress:
The Settings API allows admin pages containing settings forms to be managed
semi-automatically. It lets you define settings pages, sections within those
pages and fields within the sections.
You can achieve this if the blog description is set:
$bloginfo = get_bloginfo( "description", "raw" );
This returns the "Tagline" set in
Settings > General
. This data is retrieved from the
blogdescription
record in the
wp_options
table.
Similar questions
How to display custom information using PHP in Wordpress?
I'm currently embarked in my first web project, and I think I may have taken on too much without the proper experience in PHP + Wordpress. What I'm trying to achieve with this project is to have a website where we have two different users, and 1 user can post custom post types through a form, while the other user can view them in a custom feed for ...
How to display shopping cart information in Wordpress / WooCommerce
I am using woocommerce and wordpress for an e-commerce website. I want to be able to display the number of items and total price in a user's cart anywhere on the page. Normally -- and if you use one of the woo themes -- this shows up in the menu navigation bar. However, I am using an almost completely blank theme, and I do not know how I can get th...
Wordpress display file include / partial path information for debuging
Few months back I was working on customizing theme that I was assigned to. I remember that I used some function or define something in the config or theme functions file and than it displayed debug information of exact path to every included file/partial but I cannot remember what it was. I am googling for hours with no luck and I am running out of...
How to display payment information with PayPal IPN WordPress
I using plugin for wordpress - IPN PayPal and I want to display on my Home site list with payments. I wont to use to this paypal hooks. This I add to function.php but how this call to be displayed the appropriate data in the table on page? I tried by But it doesn't work. I'm totally laic, help
Customise the author URL in wordpress to display user information
I am looking to use the author.php template to display information about each user. I am running a loop to get users but when I click through I cant seem to grab any information relating to that user? How can I retrieve the firstname etc in the author.php file? For some reason it wont pull through to display anything. Thanks
WordPress Theme/Plugin Information API Response to Text and Button
When requesting to WordPress API for any plugin or theme information for the versions field https://api.wordpress.org/themes/info/1.1/?action=theme_information&request[per_page]=12&request[slug]=twentyfifteen&request[fields][tags]=0&request[fields][sections]=0&request[fields][screenshot_url]=0&request[fields][versions]=1 I g...
Also ask