WordPress.org

Ready to get started?Download WordPress

Forums

Post tiltes get truncated (3 posts)

  1. mahamaya3
    Member
    Posted 4 years ago #

    Hi

    I blog in Tamil unicode and I use date-name type permalink.

    Since the post title is in non-English unicode, the permalink url of the post appears in % escape characters (e.g: "%e0%ae%95%e0%af%82" etc). This increases the number of characters in the title url.

    The result is that my post titles when typed in my language and saved, they get trimmed to some length after saving. Hence the resultant post url shows a meaningless word in the end, since the cut off happens somewhere in the middle of a word, on which I have no control.

    Hope I have explained the problem correctly.

    Please tell me what is the limiting size (length) for post title url and how to increase it.

    Your help would greatly relieve my current headache!

    Thanks.

  2. mahamaya3
    Member
    Posted 4 years ago #

    After a bit of searching I found this line in \wp-includes\default-filters.php file.

    "add_filter('the_title', 'trim');"

    I wonder if this has anything to do with the limiting of no. of characters in the post title.

    Thanks I A for your help!

  3. mahamaya3
    Member
    Posted 4 years ago #

    Its me again!

    I think I'm making progress..!

    I found this:

    /**
    * Encode the Unicode values to be used in the URI.
    *
    * @since 1.5.0
    *
    * @param string $utf8_string
    * @param int $length Max length of the string
    * @return string String with Unicode encoded for URI.
    */

    function utf8_uri_encode( $utf8_string, $length = 0 )

    in file "formatting.php".

    I am not able to proceed further since I am php-challenged!

    Hope someone will help.

    Mahamaya.

Topic Closed

This topic has been closed to new replies.

About this Topic