Difference between bloginfo and get_bloginfo in WP

By | November 8, 2013

In WordPress, bloginfo and get_bloginfo are use for get information about your site, which can then be used anywhere  within a template file for either Print Site information to the Browser or use in your PHP code respectively.

Syntax

Difference between bloginfo and get_bloginfo in wp
Difference between bloginfo() and get_bloginfo() in WP

– bloginfo() always prints a result to the browser.

– get_bloginfo() use for need the values for use in PHP code instead of Print in Browser,

Example :

In short, bloginfo print value where as get_blogine do not print value but to print their value we need to use either echo, print or else

Leave a Reply

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