Welcome to the Question2Answer Q&A. There's also a demo if you just want to try it out.
0 votes
420 views
in Q2A Core by
I'm trying to add an adsense ad, so the content of the first answer in the page will wrap around it.

I found the function a_item_main prints the contents of the answer, but it prints the content of each and every answer.

I need a way to know if I'm currently printing the first answer, and act accordingly. Any way to know that? Something like answer id or anything?

 

Thank you.

1 Answer

0 votes
by

Use a PHP global variable (or a member variable in your advanced theme class) to keep track of the number of times that a_item_main(...) has been called.

by
Thank you for the suggestion. Will give it a try.
Have a great day!
...