How can I show my latest tweet in my wordpress blog?
in functions.php not use any plugin
|
|
|
To do this without a plugin is pretty simple, you can utilise built in WordPress functionality such as a combination of short codes and widgets, or simply short codes placed within content if you prefer. Using the WordPress functions file to create short codes is easy and a detailed tutorial can be found here http://wp.smashingmagazine.com/2009/02/02/mastering-wordpress-shortcodes/ If you were to combine short code creation with a decent latest tweets tutorial then you will easily accomplish your goal, if you are unable to follow the short code tutorial to achieve this then you are probably better off using a plugin until such times as you understand PHP enough that you can. |
|||
|
|
You never said where you want it so this just pops it into the head (not a great idea), and is a bad example lol. Instead you should use the HTTP API and cache the results for at least 10 minutes. Also you should just use a plugin for more features because there is NO difference between a plugin and functions.php. |
|||
|
|
|
Below is the function I use to fetch the latest tweet. The benefits of this is:
For more information, please read this tutorial:
|
|||
|
|