Welcome to the Question2Answer Q&A. There's also a demo if you just want to try it out.
0 votes
14.8k views
in Q2A Core by
I try this in my qa-theme.php

 

 function head_custom()
        {
            if ($this->template=='question')
                $this->output('<meta name="description" content="'.(@$this->content['q_view']['content']).'">');
        }

the meta descrition is set but this: @$this->content['q_view']['content'] is null.

I dont know why because I read it in others questions
Q2A version: 1.5 last

1 Answer

0 votes
by
Not all questions have content - you can write your entire question in the title and leave content empty.
...