Use Hashtags – convert #hashtags to search links

विवरण

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:

स्क्रीनशॉट्स

  • 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.

इंस्टॉलेशन

  1. Install the plugin (uploading the zip or installing from the Plugins > Add New);
  2. Activate the plugin and that’s it, it’s already running;
  3. If you want to customize something, look for “Use Hashtags” in the Tools menu;
  4. Follow the instructions and click the button to save.

सामान्य प्रश्न

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; }

समीक्षाएं

मई 12, 2022 1 reply
I got in the habit of using inline hashtags in my notes and research after using apps like Workflowy and Bear because it makes it easier to later find specific bits of information. This plugin definitely lets me mimic a similar function in WP. The only thing missing from this for me is support for tags that have characters in them such as a dash (-) or asterisk (*) or forward-slash (/). With the dash, a long hashtag like #ilovethishashtagplugin can be a little more readable as #i-love-this-hashtag-plugin. If you enable other characters like the * or /, you can nest your hashtags in a hierarchal manner, such as #wp*favorite-plugins or #wp/favorite-plugins. All in all, a super plugin that helps organize my brain as well as helps carry over the functionality of the hashtags I'm already using in apps like Bear and Workflowy. This is something I've needed for a long time and opens up all kinds of possibilities I can explore for ways I classify and organize content directly from my notes to WP, thank you for making this!
2 के सभी समीक्षा पढ़ें

सहायक &डेवलपर्स

यह खुला स्रोत सॉफ्टवेयर है। अनुगामी लोगो ने इस प्लगइन के लिए योगदान दिया है।

योगदानकर्ता

“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.

बदलाव विवरण

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.