WordPress.org

Forums

Hashtag
[resolved] Problem with national characters (6 posts)

  1. togur
    Member
    Posted 2 years ago #

    In case using a national character in hashtag, the link is truncated until first position of special sign.

    http://wordpress.org/extend/plugins/hashtag/

  2. takien
    Member
    Plugin Author

    Posted 2 years ago #

    Hello,
    Hashtag currenly supports a-z and _ characters only.

  3. togur
    Member
    Posted 2 years ago #

    Do you intend to implement this feature? Plugin is great, but without support of national characters is unusable for me.

  4. araz
    Member
    Posted 2 years ago #

    how to set or add other language?
    (arabic)

  5. BifidusInactif
    Member
    Posted 2 years ago #

    Hi,

    If you want to use national characters in hashtag, you could modify the regular expression in the plugin file 'hashtag.php' at line 49.

    For example, to accept voyels with accent :

    $content = preg_replace('/(^|\s)#(\w*[a-zA-Zàáâãäåçèéêëìíîïðòóôõöùúûüýÿ_]+\w*)/i', '<span class="'.$class.'">\1#<a href="'.site_url().'?s='.$hash.'\2">\2</a></span>', $content);
  6. takien
    Member
    Plugin Author

    Posted 1 year ago #

    Please update to the latest version.
    It should works on other character.

Topic Closed

This topic has been closed to new replies.

About this Plugin

  • Hashtag
  • Frequently Asked Questions
  • Support Threads
  • Reviews

About this Topic

Tags

No tags yet.