Conversation
supportHello, your plugin works perfect for me. Congratulations. However I want to limit the string lengh of the venue and the location (city/country) in order that if the name is too long to see “…” at the end of the name instead of the long name. I see the file songkick_presentable_event.php where the function is added but I am not sure how to implement the $str inside it because I am not PHP professional. Can you help me to do that? Thank you so much! http://wordpress.org/plugins/songkick-concerts-and-festivals/
WordPress has a formatting function to trim words: http://codex.wordpress.org/Function_Reference/wp_trim_words For characters, you’d have to implement your own method. If you google for it, you can find examples of how to do it. You need to use the substr function: http://uk3.php.net/substr or http://uk3.php.net/mb_substr Hope that helps!
WordPress has a formatting function to trim words: http://codex.wordpress.org/Function_Reference/wp_trim_words For characters, you’d have to implement your own method. If you google for it, you can find examples of how to do it. You need to use the substr function: http://uk3.php.net/substr or http://uk3.php.net/mb_substr Hope that helps!