the_title()与the_title_attribute()有什么区别?怎样用?-WordPress主题

摘要:对于wordpress开发者来说the_title再熟悉不过,这是wordpress主题开发中最常用的函数之一,标题函数…

对于wordpress开发者来说the_title再熟悉不过,这是wordpress主题开发中最常用的函数之一,标题函数,但是很多开发者并没有意识到,还存有另外一个同样属性的标题定义函数the_title_attribute(),那the_title_attribute()函数怎样应用呢?

通过上面的案例展示,提醒大家一下在html标签属性里一定要使用 the_title_attribute() 函数而不是 the_title() 函数!

来源:http://www.wazhuti.com/2066.html

微信公众号
手机浏览(小程序)

Warning: get_headers(): SSL operation failed with code 1. OpenSSL Error messages: error:14090086:SSL routines:ssl3_get_server_certificate:certificate verify failed in /mydata/web/wwwshanhubei/web/wp-content/themes/shanhuke/single.php on line 57

Warning: get_headers(): Failed to enable crypto in /mydata/web/wwwshanhubei/web/wp-content/themes/shanhuke/single.php on line 57

Warning: get_headers(https://static.shanhubei.com/qrcode/qrcode_viewid_13210.jpg): failed to open stream: operation failed in /mydata/web/wwwshanhubei/web/wp-content/themes/shanhuke/single.php on line 57
0
分享到:
没有账号? 忘记密码?