How to use the bloginfo() function in wordpress theme

How to use bloginfo in wordpress theme

For each wordpress theme developer the bloginfo() function is very useful. If you are not used the bloginfo function then use the bloginfo function. There is great help is provided wordpress api. In every wordpress theme we need to use the bloginfo method. bloginfo() function is useful. If you not used bloginfo function than use bloginfo function. Every theme we need to use bloginfo in wordpress theme.

How to use bloginfo in wordpress theme

How to use bloginfo in wordpress theme
How to use bloginfo in wordpress theme

Displays information about your blog, mostly gathered from the information you supply in your User Profile and General Options from the WordPress Administration panel.

Following parameter is passed in this method.

01name = TestWpapi
02description = Just another WordPress blog
03admin_email = admin@example
04 
05url = http://example/home
06wpurl = http://example/home/wp
07 
08stylesheet_directory = http://example/home/wp/wp-content/themes/child-theme
09stylesheet_url = http://example/home/wp/wp-content/themes/child-theme/style.css
10template_directory = http://example/home/wp/wp-content/themes/parent-theme
11template_url = http://example/home/wp/wp-content/themes/parent-theme
12 
13atom_url = http://example/home/feed/atom
14rss2_url = http://example/home/feed
15rss_url = http://example/home/feed/rss
16pingback_url = http://example/home/wp/xmlrpc.php
17rdf_url = http://example/home/feed/rdf
18 
19comments_atom_url = http://example/home/comments/feed/atom
20comments_rss2_url = http://example/home/comments/feed
21 
22charset = UTF-8
23html_type = text/html
24language = en-US
25text_direction = ltr
26version = 2.9.2

following is examples for using the bloginfo() method.

1//Show Blog Description
2 
3//Show Blog Title
4 
5//ading the style.css
6//ping back url
7//for content type
How to use the bloginfo() function in wordpress theme
How to use the bloginfo() function in wordpress theme

Published by

Purab

I am Purab from India, Software development is my profession and teaching is my passion. Programmers blog dedicated to the JAVA, Python, PHP, DevOps and Opensource Frameworks. Purab's Github Repo Youtube Chanel Video Tutorials Connect to on LinkedIn

One thought on “How to use bloginfo in wordpress theme”

Leave a Reply

Your email address will not be published.