Most WordPress functions, that generate output, do echo that output by them self. But all those functions are just wrappers for the accordingly get_*-functions.
In your case its bloginfo() and get_bloginfo(), where the second returns the output, so you can use it for whatever you like.
Related Posts:
- How does printf( __( ) ); work?
- Return HTML Template Page with PHP Function
- Why do templates contain so many PHP tag pairs?
- Is there a way to parse shortcodes in PHP?
- How to automatically apply woocommerce product title to all product images alt tags?
- What exactly does “Posts page” do in WordPress?
- Check if a menu is empty?
- remove tags from posts in php
- WordPress Template Engine?
- How to have a custom display for both woocommerce archive and product-category pages? [closed]
- On this day PHP code
- Blank on static home page?
- WordPress theme & site not loading after moving files
- Adjust the results quantity for Search Results page pagination
- display most popular tags in two columns
- Is it possible to use the featured image of a page as a css background without inlining?
- Displaying Only Certain Tags in Loop
- query if on page/2/?
- Blank space at beginning of tag?
- Highlight Current Tag in wp_tag_cloud
- Link to file in plugin directory from wordpress template?
- Password protecting content in custom template
- Add relevant tag to search results
- How to override wp-admin styling
- An unwanted inline style is added to my body tag
- How to create a linked tag list in my sidebar
- Render ninja form inside markup
- Way to querry data (tags) from a wordpress database?
- Mass update excerpt
- How can I get a single php file that is the equivalent of an existing WordPress page?
- Get and insert order email address to the PHP template inside HTML text
- Change title only in dynamic page
- Adding Taxonomy Image to taxonomy loop [closed]
- If tag equals then show else show
- how to show only specific category for a template
- Way to bulk make all my tags lowercase?
- Pull Tags But Not as Links
- Adding Meta Tags to a Post using its Tags, Excerpt and content
- Can’t print Yoast meta description into page template (syntax error, unexpected ‘.’) [closed]
- Using same variable names in files added with get_template_part()
- List posts that don’t have a specific tag?
- Add filter multiple times using only one master function
- Create a Blog Template Page
- Showing latest post without 301 redirect
- Edit the_category (); for a hierarchical display
- WordPress template page name displayed on screen
- Use Tags to initiate Search
- single.php with different look by category
- Function Reference Documenting Template Tags for use in Custom Theme Templates?
- Removing WordPress Footer -without access to PHP code?
- Adding conditional text to a PHP Shortcode Template
- Create page template via functions.php?
- What’s a good way to allow overwriting files within a child theme if I want the same folder structure?
- how to display this functions?
- is_page_template showing partial results
- Adding regular php file to site
- Template Loop – add switch case php
- Post repeated when opening in overlay, how do I solve this? [closed]
- How can I get “Previous” and “Next” to show in the navigation besides the links?
- How to tag the main tag? [closed]
- Splitting the_content() by size?
- Gravity Forms merge tags in templates?
- Unable to render custom field after attempt to generate a list of recent post in page template
- php loading different structure than source code
- pass html code to worpdress
- Commas in Tag Cloud
- making my own “related pages” / “pages you might like” section
- How to exclude labels from certain categories in a shortcode?
- Prevent header and footer from loading on specific pages with template or plugin
- Display metabox galleries on specific page template in admin editor
- Display WordPress archive template page in 3 columns and not 1 column [closed]
- Run do_shortcode on php template using JS function
- How to hardcode header and footer in WP?
- How to add Text before my Custom Term and hide it when empty
- clicking on the_tags() generated tags to show all tagged posts page
- How to put a before and after with tags in a wordpress entry?
- How to create dynamic templates?
- If is_page elseif is_page not working like I want it to
- missing admin bar and widget in a template
- How to include a function in a template with template tag
- View tag description on page
- My own theme’s custom widget areas are not working
- Display tag links on archive page?
- How do I modify the Previous and Next Page posts on blog pages to include “previous” and “next” before the links?
- How do you change the tag font size in the repeater-template.php [closed]
- PHP tag in post content makes wordpress go crazy
- Display product attributes for current product
- How to only fetch certain Tag ID’s
- How to call a certain object/menubar in a PHP file
- Insert wordpress tags below posts via functions.php
- WordPress – show all posts + ones with specific tag
- how to register a second page-template
- why is markup routinely placed in functions in wordpress?
- Loop on a wordpress Page instead of content coming from the WP text editor
- how to loop through blog posts in php
- The search doesn’t work properly
- How can one use variables in a template or template part without polluting the global scope?
- Need Help With Making Full-Width Template for Blog Posts (common methods aren’t working)
- Count post with tags within one category?
- WordPress post-template null warnings