I was struggling to get both comments and replies to post while only showing “facepile” for likes and boosts. I had no one to blame but myself as I coded the theme from scratch. I’m posting this so the next time I have this problem (there is always a next time), future me can look up the answer. This time, present and ast me had no answer or even much of a clue. After giving up and asking ChatGPT WTF things were not doing what I wanted (show replies and mentions at the same time), I found a workaround, which left my comment count off. My fix to show all comment types (but not likes and boosts) was an array constant in functions.php (theme). define('LORDMATT_COMMENT_TYPES_NO', array( 'like', 'repost', 'boost', )); This defines a list of comment types that don’t need to be shown. Defining this way only works in PHP 7+, so use it with care. Then I did this in comments.php (theme) to reach the “it works, nobody touch anything” state. $comments = array_filter( $comments, function( $comment…
No comments yet. Log in to reply on the Fediverse. Comments will appear here.