WordPress Gets Home website link and site name

Bloginfo get WordPress site using the name and homepage link

Use a:

BLOG_TITLE $ = get_bloginfo ( 'name' ) ; // get the name of the site linkzmki $ = get_bloginfo ( 'url' ) ; // Gets Home Links

 

$ BLOG_TITLE echo    // Results: Drill Mans blog
$ linkzmki echo   // result: https://www.zmki.cn  

 

Usage of Two

< PHP? Bloginfo ( 'name' ) ; ? > // result: Diamond Mountain blog < ? PHP bloginfo ( 'url' ) ; ? > // result: https: //www.zmki.cn

 

Examples

Original link: Drill Mans blog

https://www.zmki.cn/5109.html

Acknowledgments:

Guess you like

Origin www.cnblogs.com/zmki/p/12182205.html