Is there a way to separate a question block from all answers block?

Moved Technical Support
  • I would like to write HTML specific for an answer, and HTML specific for a question. I am looking at all the current themes but it seems the way most developers are doing it is by keeping all threads consistent inside the loop, then at the top of the loop displaying the title.


    <!-- BEGIN posts -->
    <!-- END posts -->

    I am trying to figure out a way to display a topic like

    <!-- IF question -->
    <div id="questions-container">
    posted {time} by {}
    <div class="question">
    <!-- ELSEIF answer -->
       answer html
    <!-- ENDIF question -->

    Any advice?

  • I found the answer

    <!-- BEGIN posts -->
    <!-- IF @first -->
    <h1>Main Author: {posts.username}</h1>
    <!-- ENDIF @first -->
    <!-- IF @last -->
    End of posts. Click here to scroll to the top.
    <!-- ENDIF @last -->
    <!-- END posts -->

Suggested Topics