Q and A using bbpress
-
I am trying to design a Question and Answer theme by customizing bbpress where Topics will be Questions and Replies will be Answers. I am able to change the display names and slug names of ‘Forums’, ‘Topics’ and ‘Replies’ into ‘Sectors’, ‘Questions’ and ‘Answers’ respectively using str_ireplace functions. (Please note that I have also changed ‘Posts’ into ‘Answers’). Its pretty easy until here. The problem I am facing is this:
When the single topic is displayed, the headers appear like this:
Author | Answers
Admin | What is the Capital of USA?
User1 | It's hmm.. I don't know.
User2 | I think its New York.
User3 | No Guys its washing ton.
The first post is in fact the Question. Unfortunately it also appears under Answers. I understand that I have to deal with the loop now because all posts looped in this topic naturally appear under Posts (in my case ‘Answers’). This was how bbpress is designed. But is there a way where I can have a different header for the very first post in my single topic and rest of the posts will have different header. For example:Author | Question
Admin | What is the Capital of USA?Author | Answers
User1 | It's hmm.. I don't know.
User2 | I think its New York.
User3 | No Guys its washing ton.
Author | Answers
How do I get this? Do I have to edit the loop or call it twice? If so, how do I set the query to get only first post in the first block and all posts minus first post in the second block.
Would appreciate any help. Thank you.
PS: I am using bbpress 2.2.3 along with Skeleton Theme (which has inbuilt theme support for bbpress).
- You must be logged in to reply to this topic.