okay sorry ,,, yes its working in function post_meta(...) but I want to use in another function like this;
function extra_content($post)
{
if($post['raw']['type'] == 'Q') {
require_once QA_INCLUDE_DIR.'qa-db-metas.php';
$extra = qa_db_postmeta_get($post['raw']['postid'], 'qa_q_extra');
if(isset($extra) && trim($extra) != '')
$this->output('<span class="extra_on_list"> - ('.qa_shorten_string_line(trim($extra), 200).')</span>');
}
and I call this function like this;
function q_item_main($q_item)
{
$this->extra_content($q_item);
}
but character limit is not working