Welcome to the Question2Answer Q&A. There's also a demo if you just want to try it out.
+1 vote
370 views
in Q2A Core by
For some personal customizations, I need to number the answers in the answer list.

#1

The first answer's content and meta info as well as its comments

#2

The second answer's content and meta info as well as its comments

...
Q2A version: 1.8.5

1 Answer

+2 votes
by

In your theme, override the a_list_items function to get the array index from each item. Something like this:

public function a_list_items($a_items)
{
  foreach ($a_items as $num => $a_item) {
    $this->output('<p>' . $num + 1 . '</p>');
    $this->a_list_item($a_item);
  }
}

...