Docs    Twitter    Documentation

Can I display posts from a specific screen name that have a certain hashtag?

The two ways to filter an X (Twitter) user feed by hashtag, using a search feed or the feed filter settings.

Would you like to show only the posts from one X (Twitter) account that use a certain hashtag?

In this guide, we’ll walk you through filtering a User Timeline feed with the Allowed Words setting. All you need is a User Timeline feed for the account you want to show.

Requirements: The Allowed Words filter works in User Timeline feeds on every paid license level. Hashtag feeds need the plus license level or higher. Search feeds need the elite license level. Older Personal, Business, and Developer licenses include every feature.

Before you get started, make sure Custom Twitter Feeds is installed and activated on your WordPress site.

Adding Your Hashtags

To start, go to Twitter Feed » All Feeds in your WordPress dashboard.

The Twitter Feed menu in the WordPress dashboard with All Feeds highlighted, next to the All Feeds page

Next, find your User Timeline feed and click the Edit icon in the Actions column.

The All Feeds list with an arrow pointing to the Edit icon of a User Timeline feed

Your feed opens in the customizer. Next, click the Settings tab. Then click Filters.

The Settings tab of the feed customizer with an arrow pointing to Filters

In the Allowed Words field, type the hashtags you want to show. If you have more than one, separate them with commas.

The Allowed Words field with two hashtags typed in and an arrow pointing at the field

The feed only keeps posts that match your entries, so a few details are worth knowing.

  • Include the # symbol. An entry like #WordPress matches the hashtag. An entry without the symbol, like WordPress, matches that word in the text of a post and never matches the hashtag.
  • Capital letters don’t matter. #WordPress and #wordpress match the same posts.
  • Each entry has to match a whole hashtag. For example, #Word doesn’t match #WordPress.
  • Spaces inside an entry are removed. Hashtags don’t contain spaces, so enter one hashtag per entry.

With your hashtags entered, you’re ready to choose how they match.

Choosing Any or All

When you list more than one hashtag, you choose whether a post needs one of them or every one of them. Under Show tweets that contain, open the first list.

The Show tweets that contain setting with an arrow pointing to the list set to Any of the Allowed words

By default, the list is set to Any of the “Allowed words”. A post only needs one of your hashtags to appear. This keeps more posts in your feed. All of the “Allowed words” narrows the feed to posts that include every hashtag you listed. If you only entered one hashtag, or you aren’t sure, leave the list on Any of the “Allowed words”.

The other two lists in this setting work with the Blocked Words field. For a hashtag filter, you can leave them as they are.

Once you’ve picked an option, you’re ready to save your filter.

Saving Your Filter

When you’re done, click Save at the top of the customizer.

The top of the feed customizer with an arrow pointing to the Save button

Now open the page with your feed. It shows posts from your account that include your hashtags.

Choosing Another Feed Type

Custom Twitter Feeds also has two feed types that work from a hashtag or a search. A Hashtag feed shows public posts that contain a hashtag. A Search feed shows posts that match search terms.

Hashtag feeds need the plus license level or higher. Search feeds need the elite license level. Our guide to building a Search feed covers how they work.

To keep your feed to one account, a User Timeline feed with the Allowed Words filter is the setup this guide covers.

That’s it! You now know how to use the Allowed Words filter to show only the posts from one account that use a certain hashtag. Next, check out our guide on hiding specific posts in your feed.

Frequently Asked Questions

Below, we’ve answered some of the most common questions about filtering a feed by hashtag.

Which license level do I need to filter by hashtag?

Allowed Words works in User Timeline feeds on every paid license level. Hashtag feeds need the plus license level or higher, and Search feeds need the elite license level.

Can I enter a phrase with more than one word?

The plugin removes the spaces inside each entry, so Facebook feed becomes Facebookfeed. That entry doesn’t match a post that has the two words side by side. Instead, enter each word as its own entry, separated by commas. To only show posts that contain every word, choose All of the “Allowed words”.

How do I leave out posts that contain a certain word or hashtag?

Add it to the Blocked Words field, just below Allowed Words. With the default settings, a post has to match an Allowed Word and none of the Blocked Words to appear.

Why is my feed empty after I added a hashtag?

The filter only shows posts that match, so a feed with no matching posts has nothing to show. To fix this, check that the entry starts with # and that it’s spelled the way the posts spell it. An entry without # doesn’t match a hashtag.

support

Couldn’t find your answer in the docs?

Contact Support