在Wordpress中创建twitter小部件函数.php文件
Posted
tags:
篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了在Wordpress中创建twitter小部件函数.php文件相关的知识,希望对你有一定的参考价值。
I found this code for adding a custom twitter widget to your functions file, it's been useful on more that a few occasions. So thought I would add it to the blog as well as development. As the code needs the twitter_update_list ID it's not possible to put more than one of these on a page so I haven't made it into a multiple widget.
<div> <ul><li><h2><a href="http://twitter.com/MYTWITTER">My Twitter Feed</a></h2> <ul id="twitter_update_list" ><li><script type="text/javascript" src="http://twitter.com/javascripts/blogger.js"></script> <script type="text/javascript" src="http://twitter.com/statuses/user_timeline/MYTWITTER.json?callback=twitterCallback2&count=5"></script></li></ul> </li></ul></div> register_sidebar_widget(__('Twitter feed'), 'widget_mytheme_twitter'); ?>
以上是关于在Wordpress中创建twitter小部件函数.php文件的主要内容,如果未能解决你的问题,请参考以下文章
php EMPTY WIDGET用于在wordpress中创建单个小部件的插件代码。