Function bloginfo output via shortcodes

WordPress has a great feature bloginfo() with which you can display basic user information on your site. This function can be used anywhere in your blog template, but what if you need to use the data, which are returned by the function in the article itself. Correct answer is one, need to use shortcodes.

To use shortcodes, which will output the same information, which the function outputs bloginfo() required in file functions.php your theme insert a special hook.

After adding the hook, the data will be displayed using the shortcode [bloginfo value=’name’]. Let me give you a few more examples for clarity.:

And now let's consider what the value attribute can be and what it can display if it is entered into the shortcode.

Here is such a small, but I think a useful post for today, follow us and good luck in website development.


Купить хостинг WordPress
WordPress tutor
Online tutoring services. List of courses I teach
  • Basic web design course;
  • Site layout;
  • General course on CMS WordPress and continuation of the course on template development;
  • Website development in PHP.
Read more on the page WordPress tutor
*/

Nikolaenko Maxim

Director of web studies ProGrafika. I am developing, website design and promotion. Always glad to new blog readers and good clients.


You may also like...

Leave a Reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.

Templates for WordPress
The best hosting in Ukraine
Stable hosting for Drupal