Add content to first reply only
How can I hook into the FIRST reply on a single topic page? I want to add an image attachment only to the first reply, but i cannot find how to do so. I hooked into the action “
bbp_theme_before_reply_content“, but it adds the image to every reply on the page!
I thought about getting a list of all reply ids, then comparing the current reply id (
bbp_get_reply_id()) with the first id in the array, and showing content if they are equal. That would solve the problem. BUT I also failed at getting the list of ids – I tried with
I also wish the FIRST reply in the loop would have a unique id or class, but it does not 🙁
Here is the page:
- You must be logged in to reply to this topic.