Is it possible to sort the Extended layout like you can with the Threaded layout like in the post below? I'm not seeing the .PHP files for Extended.
FYI I found the php files for the Extended layout.
We really need posts to appear in order they were posted ....new posts at the top.
If someone does a reply we don't want that topic pushed to the top....we just want it to stay in order.
With what we are doing it is super confusing to our users as we are posting stock trade updates and every time someone does a reply it pushes it to the top.
Oh this is perfect 🙂 Exactly what we needed.
oh Hey...one thing.. this messes up pinned posts... now they are no longer pinned. They just sort in order now like the rest.
Any solution?
If you want to keep the sticky/pinned topics above all topics then use this:
add_filter('wpforo_topic_list_args', function ($args){
if(!empty($args)){
$forumIDs = array(2, 17);
if( in_array( $args['forumid'], $forumIDs) ){
$args['orderby'] = 'type DESC, topicid ASC';
$args['order'] = '';
}
}
return $args;
});