Family Best Time >> Electronics

How to display selective tweets in WordPress

Recently one of our readers asked us how they can display targeted tweets in a WordPress widget. Previously, we showed you how to add the official Twitter follow button, how to add twitter cards, and how you can display recent tweets in WordPress using the Twitter widget. The Twitter widget itself also comes with powerful tools that allow you to create streams for your twitter lists, tags, and search. In this article, we will show you different ways to display targeted tweets in WordPress using Twitter widgets.

How to display selective tweets in WordPress

Video Walkthrough

Subscribe to WPBeginner

If you don't like the video or need more instructions, continue reading.

Show tweets from a user with a specific hashtag or keyword

Let's say you want to add a Twitter widget to your WordPress site displaying only your tweets with a certain keyword or hashtag. Go to the Twitter Widgets site and click on the search tab. In the search query box enter de: wpbeginner #WordPress . Replace wpbeginner with your own twitter handle and #WordPress with your keyword or hashtag.

How to display selective tweets in WordPress

Save your widget and copy the widget code.

How to display selective tweets in WordPress

On your WordPress site, go to Appearance »Widgets . Drag and drop a text widget to the sidebar and paste the widget code inside it, save your text widget and preview your website.

Using Twitter search to create custom streams

Twitter comes with a powerful search engine of its own. However, since tweets are not like articles, Twitter comes with a different set of parameters for performing advanced tweet searches. In the example above, we searched for tweets from a particular user with a specific keyword or hashtag. You can also search for replies, mentions, tweets with links and keywords, tweets from nearby places, etc. See a list of Twitter search parameters and what they do. Use these parameters in the search widget and you can create your own tweet mashups.

We hope this article has helped you display targeted tweets in WordPress widgets. For questions and comments, please leave a comment below or follow us on Twitter.