Tag settings provide ways for you to customize how post tags are converted into hashtags in your templates – the output of the #tags# template tag.

There are five key customizations available:

Strip nonalphanumeric characters from tags

By default, the basis for tags is to use the term name, capitalize individual words, remove spaces between words, and insert a # character at the front of the tag.

If your tags may include characters other than 0-9 and A-Z that you want removed from the hashtag, check this option.

Use tag slug as hashtag value

This will use the $term->slug as the base for your hashtags instead of $term->name. This can give you additional control over the actual hashtag used.

Use categories instead of tags

If you don’t want to use your post tags, and would prefer to use post categories, choose this option. Everything works the same; it just choose your hashtags from a different taxonomy.

What about custom taxonomies?

It is possible to use a custom taxonomy for hashtags; there’s just no interface to enable it. Take a look at the example code.

Maximum number of tags to include

Default: 4. If you use a lot of tags on your site, but don’t want them all to share to social media, you can adjust the maximum number of tags allowed here.

Maximum length in characters for included tags

If you’re adding a lot of very long hashtags, you can eat up your available characters very fast. This is the maximum number of characters any one tag is allowed to have.

Secret that might be useful: if your tag name starts with an ‘@’ symbol, it’ll automatically be added as a mention, instead of as a tag.