Description
With the Use Hashtags plugin, you can easily use hashtags in your content (and your excerpt). Just type # plus a word, and the plugin will automatically convert it to a link.
The link send the user to the website search page, showing additional content that also uses that hashtag.
This can enhance the user experience, as it creates a new navigation layer inside your content.
- There is no need to maintain the hashtags, just add them to your text, and it’s done.
- This plugin is non-destructive, so it does not make any changes to how your content is saved. Only when the content is presented, the link will appear for the visitors.
- This plugin does not generate external links.
- Tested with selected core blocks.
Tested with popular themes:
Screenshots
Example of how a hashtag appears in the content. For this example we are using the Twenty Twenty theme. Example of how a hashtag appears in the content. For this example we are using the GeneratePress theme. Example of how a hashtag appears in the content. For this example we are using the Neve theme. Example of how a hashtag appears in the content. For this example we are using the Hello Elementor theme. Simple settings.
Installation
- Install the plugin (uploading the zip or installing from the Plugins > Add New);
- Activate the plugin and that’s it, it’s already running;
- If you want to customize something, look for «Use Hashtags» in the Tools menu;
- Follow the instructions and click the button to save.
FAQ
-
Do I need to add each hashtag as a tag?
-
No. The idea here is that a #hashtag added as part of the text will be replaced with a link like
<a href="/?s=#hashtag">#hashtag</a>
. -
I am not seeing the links in the editor. What is wrong?
-
This is the correct behavior. Links appear only at the time of rendering the content or excerpt.
-
What is a non-destructive plugin?
-
We do not change the way your content is saved, only how it is rendered for visitors. If you uninstall the plugin, the #hashtags will remain a simple text.
-
Which characters are considered on a hashtag?
-
For now,
A-Z
,a-z
,0-9
,_
,-
,*
,@
and/
. -
Can I style the links?
-
Yes, every hashtag link has a CSS class
hashtag-link
. You can add the class in your theme’s css.Example:
a.hashtag-link { text weight: bold; }
Reviews
Contributors & Developers
“Use Hashtags – convert #hashtags to search links” is open source software. The following people have contributed to this plugin.
Contributors“Use Hashtags – convert #hashtags to search links” has been translated into 2 locales. Thank you to the translators for their contributions.
Translate “Use Hashtags – convert #hashtags to search links” into your language.
Interested in development?
Browse the code, check out the SVN repository, or subscribe to the development log by RSS.
Changelog
1.1.0 (2022-05-21)
- Updated to WordPress 6.0.
- Updated the regex rule, added the possibility to use -, /, @, * as part of a hashtag
1.0.5 (2022-01-26)
- Updated to WordPress 5.9.
- Added support to core/post-content and core/post-excerpt blocks.
- Updated the regex rule.
1.0.4 (2021-07-25)
- Updated to WordPress 5.8.
1.0.3 (2020-08-21)
- Fixing a bug when a link has an anchor.
1.0.2 (2020-08-21)
- Fixing the search url to get a better behaviour.
1.0.1 (2020-08-21)
- Fixing the url when the wordpress is installed in a path.
1.0 (2020-08-21)
- The first release of the plugin, with the main features.