Hi! How can I make the new reply higher abouv the older one?
@om-vitalii, Please let me know what forum layout you use?
I use 4th layout (threaded). I`ve seen your old reply here https://wpforo.com/community/how-to-and-troubleshooting-2/how-to-sort-posts-in-a-thread-oldest-first/#post-15418
but seems templates are changed from 2018 and now In Index I see this
elseif( in_array(WPF()->current_object['template'], array('forum', 'topic')) ){
wpforo_template('forum');
if( WPF()->current_object['template'] === 'topic' ){
wpforo_template('topic');
So I need topic.php
In topic.php I see reference to layout-4-topic.php, where no args or loop appear. Do you have a modern answear to how fix my issue? Posts should be inverted order on screen
Hope you will help me, best wishes
Unfortunately the peace of code is moved to a core file. So there is no way to do this customization. In upcoming version, we'll add a new hook in the core file and let you do this change. I don't have any ETA yet. Just update this topic, once the next version is released.
In case you want to say thank you !)
We'd really appreciate and be thankful if you leave a good review on plugin page. This is the best way to say thank you to this project and support team.
Dear plugin developers, I also really need the last comment to be the first in the topic. To be like on YouTube. In this case, the description of the topic 1 comment was always on top for SEO.
If you just need to keep the first post (topic first post) on top of the topic on all pages you can enable the corresponding option in Dashboard > Forums > Settings > Topics & Posts Tab. You can enable it for each forum layout separately:
As per the hook for sorting replies, it comes very soon. Probably tomorrow.
Powered by gVectors Team. our popular plugins:
wpForo, wpDiscuz
Yes, the hook is needed, I can't wait until tomorrow. Martin you are the best!!!
You don't have to wait for the next version release. You can add the exact same hook in the same location manually. Once the update is released, you can update without any issue.
Open this file:
wp-content/plugins/wpforo/wpforo.php
Find this line:
if( $this->post->get_option_union_first_post($current_object['layout']) ) $args['union_first_post'] = true;
$current_object['posts'] = $this->post->get_posts( $args, $current_object['items_count']);
And add the extra "hook line" between them like this:
if( $this->post->get_option_union_first_post($current_object['layout']) ) $args['union_first_post'] = true;
$args = apply_filters('wpforo_post_list_args', $args);
$current_object['posts'] = $this->post->get_posts( $args, $current_object['items_count']);
Then add the updated code for reversing replies order:
In case you want to say thank you !)
We'd really appreciate and be thankful if you leave a good review on plugin page. This is the best way to say thank you to this project and support team.
Dear plugin developers, I also really need the last comment to be the first in the topic. To be like on YouTube. In this case, the description of the topic 1 comment was always on top for SEO. I can't wait for the results of your work! Respect
"Any fool can know. The trick is to understand." Albert Einstein
Robert thank you very much everything worked out. And the last will be the first, well, literally!
"Any fool can know. The trick is to understand." Albert Einstein
Well, great, I'm glad, very grateful, I've already written 2 reviews for the plugin.
So now it's just paramount to me personally, here under the topic header and with a new comment insert an empty field for the user to write a comment.
Can you help me with this? Here's a scan of what I mean.
"Any fool can know. The trick is to understand." Albert Einstein
I write as a translator and apologize for the mistakes.
Is it possible to make an empty comment field between the topic header and 1 comment as in the scan above?
"Any fool can know. The trick is to understand." Albert Einstein