<?xml version="1.0" encoding="UTF-8"?>        <rss version="2.0"
             xmlns:atom="http://www.w3.org/2005/Atom"
             xmlns:dc="http://purl.org/dc/elements/1.1/"
             xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
             xmlns:admin="http://webns.net/mvcb/"
             xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
             xmlns:content="http://purl.org/rss/1.0/modules/content/">
        <channel>
            <title>
									I want my topics to show &quot; latest reply to oldest reply&quot; - How-to and Troubleshooting - wpForo 2.0				            </title>
            <link>https://wpforo.com/community/how-to-and-troubleshooting-2/i-want-my-topics-to-show-latest-reply-to-oldest-reply/</link>
            <description>Discussion Board</description>
            <language>en-US</language>
            <lastBuildDate>Sun, 07 Jun 2026 02:34:49 +0000</lastBuildDate>
            <generator>wpForo</generator>
            <ttl>60</ttl>
							                    <item>
                        <title>RE: I want my topics to show &quot; latest reply to oldest reply&quot;</title>
                        <link>https://wpforo.com/community/how-to-and-troubleshooting-2/i-want-my-topics-to-show-latest-reply-to-oldest-reply/#post-52611</link>
                        <pubDate>Thu, 01 Apr 2021 04:04:17 +0000</pubDate>
                        <description><![CDATA[Thank you.]]></description>
                        <content:encoded><![CDATA[Thank you.]]></content:encoded>
						                            <category domain="https://wpforo.com/community/how-to-and-troubleshooting-2/">How-to and Troubleshooting - wpForo 2.0</category>                        <dc:creator>ytonline</dc:creator>
                        <guid isPermaLink="true">https://wpforo.com/community/how-to-and-troubleshooting-2/i-want-my-topics-to-show-latest-reply-to-oldest-reply/#post-52611</guid>
                    </item>
				                    <item>
                        <title>Answer to: I want my topics to show &quot; latest reply to oldest reply&quot;</title>
                        <link>https://wpforo.com/community/how-to-and-troubleshooting-2/i-want-my-topics-to-show-latest-reply-to-oldest-reply/paged/2/#post-48871</link>
                        <pubDate>Wed, 16 Dec 2020 23:30:33 +0000</pubDate>
                        <description><![CDATA[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?]]></description>
                        <content:encoded><![CDATA[<p>I write as a translator and apologize for the mistakes.<br />Is it possible to make an empty comment field between the topic header and 1 comment as in the scan above?</p>]]></content:encoded>
						                            <category domain="https://wpforo.com/community/how-to-and-troubleshooting-2/">How-to and Troubleshooting - wpForo 2.0</category>                        <dc:creator>alexas</dc:creator>
                        <guid isPermaLink="true">https://wpforo.com/community/how-to-and-troubleshooting-2/i-want-my-topics-to-show-latest-reply-to-oldest-reply/paged/2/#post-48871</guid>
                    </item>
				                    <item>
                        <title>Answer to: I want my topics to show &quot; latest reply to oldest reply&quot;</title>
                        <link>https://wpforo.com/community/how-to-and-troubleshooting-2/i-want-my-topics-to-show-latest-reply-to-oldest-reply/paged/2/#post-48866</link>
                        <pubDate>Wed, 16 Dec 2020 16:58:27 +0000</pubDate>
                        <description><![CDATA[Well, great, I&#039;m glad, very grateful, I&#039;ve already written 2 reviews for the plugin.So now it&#039;s just paramount to me personally, here under the topic header and with a new comment insert an ...]]></description>
                        <content:encoded><![CDATA[<p>Well, great, I'm glad, very grateful, I've already written 2 reviews for the plugin.<br />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.<br />Can you help me with this? Here's a scan of what I mean.</p>
<div id="wpfa-0" class="wpforo-attached-file"><a class="wpforo-default-attachment" href="//wpforo.com/wp-content/uploads/wpforo/default_attachments/1608137907-16122020.png" target="_blank" rel="noopener"><i class="fas fa-paperclip"></i> 16.12.2020.png</a></div>
<div> </div>
<div>And now there is an empty field at the very bottom of the whole topic, and while you scroll through 20 comments with the wheel, your hand will get tired! And this time.</div>]]></content:encoded>
						                            <category domain="https://wpforo.com/community/how-to-and-troubleshooting-2/">How-to and Troubleshooting - wpForo 2.0</category>                        <dc:creator>alexas</dc:creator>
                        <guid isPermaLink="true">https://wpforo.com/community/how-to-and-troubleshooting-2/i-want-my-topics-to-show-latest-reply-to-oldest-reply/paged/2/#post-48866</guid>
                    </item>
				                    <item>
                        <title>Answer to: I want my topics to show &quot; latest reply to oldest reply&quot;</title>
                        <link>https://wpforo.com/community/how-to-and-troubleshooting-2/i-want-my-topics-to-show-latest-reply-to-oldest-reply/paged/2/#post-48858</link>
                        <pubDate>Wed, 16 Dec 2020 14:39:22 +0000</pubDate>
                        <description><![CDATA[Robert thank you very much everything worked out. And the last will be the first, well, literally!]]></description>
                        <content:encoded><![CDATA[<p>Robert thank you very much everything worked out. And the last will be the first, well, literally!</p>]]></content:encoded>
						                            <category domain="https://wpforo.com/community/how-to-and-troubleshooting-2/">How-to and Troubleshooting - wpForo 2.0</category>                        <dc:creator>alexas</dc:creator>
                        <guid isPermaLink="true">https://wpforo.com/community/how-to-and-troubleshooting-2/i-want-my-topics-to-show-latest-reply-to-oldest-reply/paged/2/#post-48858</guid>
                    </item>
				                    <item>
                        <title>Answer to: I want my topics to show &quot; latest reply to oldest reply&quot;</title>
                        <link>https://wpforo.com/community/how-to-and-troubleshooting-2/i-want-my-topics-to-show-latest-reply-to-oldest-reply/#post-48830</link>
                        <pubDate>Wed, 16 Dec 2020 02:41:55 +0000</pubDate>
                        <description><![CDATA[@alexas,
You don&#039;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.
...]]></description>
                        <content:encoded><![CDATA[<p>@alexas,</p>
<p>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.</p>
<p><strong>Open this file:</strong></p>
<pre>wp-content/plugins/wpforo/<span style="color: #ff0000">wpforo.php</span></pre>
<p> </p>
<p><strong>Find this line:</strong></p>
<pre style="color: #000000;font-size: 12.0pt"><span style="color: #008d00;font-weight: bold">if</span>( <span style="color: #4985c9;font-weight: bold">$this</span><span style="color: #000080">-&gt;</span><span style="color: #0000e5;font-style: italic">post</span><span style="color: #000080">-&gt;</span><span style="color: #0000e5;font-style: italic">get_option_union_first_post</span>(<span style="color: #4985c9;font-weight: bold">$current_object</span><span style="color: #000080"></span>) ) <span style="color: #4985c9;font-weight: bold">$args</span><span style="color: #000080"> = </span><span style="color: #008d00;font-weight: bold">true</span><span style="color: #313131">;<br /></span><span style="color: #4985c9;font-weight: bold">$current_object</span><span style="color: #000080"> = </span><span style="color: #4985c9;font-weight: bold">$this</span><span style="color: #000080">-&gt;</span><span style="color: #0000e5;font-style: italic">post</span><span style="color: #000080">-&gt;</span><span style="color: #0000e5;font-style: italic">get_posts</span>( <span style="color: #4985c9;font-weight: bold">$args</span><span style="color: #000080">, </span><span style="color: #4985c9;font-weight: bold">$current_object</span><span style="color: #000080"></span>)<span style="color: #313131">;</span></pre>
<p> </p>
<p><strong>And add the extra "hook line" between them like this:</strong></p>
<pre style="color: #000000;font-size: 12.0pt"><span style="color: #008d00;font-weight: bold">if</span>( <span style="color: #4985c9;font-weight: bold">$this</span><span style="color: #000080">-&gt;</span><span style="color: #0000e5;font-style: italic">post</span><span style="color: #000080">-&gt;</span><span style="color: #0000e5;font-style: italic">get_option_union_first_post</span>(<span style="color: #4985c9;font-weight: bold">$current_object</span><span style="color: #000080"></span>) ) <span style="color: #4985c9;font-weight: bold">$args</span><span style="color: #000080"> = </span><span style="color: #008d00;font-weight: bold">true</span><span style="color: #313131">;<br /></span><span style="color: #4985c9;font-weight: bold">$args </span><span style="color: #000080">= </span><span style="color: #0000e5;font-style: italic">apply_filters</span>(<span style="color: #c64741">'wpforo_post_list_args'</span><span style="color: #000080">, </span><span style="color: #4985c9;font-weight: bold">$args</span>)<span style="color: #313131">;<br /></span><span style="color: #4985c9;font-weight: bold">$current_object</span><span style="color: #000080"> = </span><span style="color: #4985c9;font-weight: bold">$this</span><span style="color: #000080">-&gt;</span><span style="color: #0000e5;font-style: italic">post</span><span style="color: #000080">-&gt;</span><span style="color: #0000e5;font-style: italic">get_posts</span>( <span style="color: #4985c9;font-weight: bold">$args</span><span style="color: #000080">, </span><span style="color: #4985c9;font-weight: bold">$current_object</span><span style="color: #000080"></span>)<span style="color: #313131">;</span></pre>
<p> </p>
<p><strong>Then add the updated code for reversing replies order:</strong></p>
<p>https://wpforo.com/community/how-to-and-troubleshooting-2/how-to-sort-posts-in-a-thread-oldest-first/#post-15418</p>]]></content:encoded>
						                            <category domain="https://wpforo.com/community/how-to-and-troubleshooting-2/">How-to and Troubleshooting - wpForo 2.0</category>                        <dc:creator>Robert</dc:creator>
                        <guid isPermaLink="true">https://wpforo.com/community/how-to-and-troubleshooting-2/i-want-my-topics-to-show-latest-reply-to-oldest-reply/#post-48830</guid>
                    </item>
				                    <item>
                        <title>RE: I want my topics to show &quot; latest reply to oldest reply&quot;</title>
                        <link>https://wpforo.com/community/how-to-and-troubleshooting-2/i-want-my-topics-to-show-latest-reply-to-oldest-reply/#post-48804</link>
                        <pubDate>Tue, 15 Dec 2020 12:25:09 +0000</pubDate>
                        <description><![CDATA[Yes, the hook is needed, I can&#039;t wait until tomorrow. Martin you are the best!!!]]></description>
                        <content:encoded><![CDATA[Yes, the hook is needed, I can't wait until tomorrow. Martin you are the best!!!]]></content:encoded>
						                            <category domain="https://wpforo.com/community/how-to-and-troubleshooting-2/">How-to and Troubleshooting - wpForo 2.0</category>                        <dc:creator>alexas</dc:creator>
                        <guid isPermaLink="true">https://wpforo.com/community/how-to-and-troubleshooting-2/i-want-my-topics-to-show-latest-reply-to-oldest-reply/#post-48804</guid>
                    </item>
				                    <item>
                        <title>Answer to: I want my topics to show &quot; latest reply to oldest reply&quot;</title>
                        <link>https://wpforo.com/community/how-to-and-troubleshooting-2/i-want-my-topics-to-show-latest-reply-to-oldest-reply/#post-48793</link>
                        <pubDate>Mon, 14 Dec 2020 18:50:02 +0000</pubDate>
                        <description><![CDATA[Posted by: @alexas 
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...]]></description>
                        <content:encoded><![CDATA[<blockquote data-userid="3376" data-postid="48770" data-mention="alexas">
<div class="wpforo-post-quote-author"><strong> Posted by: @alexas </strong></div>
<p>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.</p>
</blockquote>
<p>@alexas,</p>
<p>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 &gt; Forums &gt; Settings &gt; Topics &amp; Posts Tab. You can enable it for each forum layout separately:</p>
<p>https://wpforo.com/wp-content/uploads/2020/12/wpForo-stick-first-post-on-top-in-topics.png</p>
<p> </p>
<p>As per the hook for sorting replies, it comes very soon. Probably tomorrow.</p>]]></content:encoded>
						                            <category domain="https://wpforo.com/community/how-to-and-troubleshooting-2/">How-to and Troubleshooting - wpForo 2.0</category>                        <dc:creator>Martin</dc:creator>
                        <guid isPermaLink="true">https://wpforo.com/community/how-to-and-troubleshooting-2/i-want-my-topics-to-show-latest-reply-to-oldest-reply/#post-48793</guid>
                    </item>
				                    <item>
                        <title>Answer to: I want my topics to show &quot; latest reply to oldest reply&quot;</title>
                        <link>https://wpforo.com/community/how-to-and-troubleshooting-2/i-want-my-topics-to-show-latest-reply-to-oldest-reply/#post-48770</link>
                        <pubDate>Sun, 13 Dec 2020 21:31:46 +0000</pubDate>
                        <description><![CDATA[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 SE...]]></description>
                        <content:encoded><![CDATA[<p>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</p>]]></content:encoded>
						                            <category domain="https://wpforo.com/community/how-to-and-troubleshooting-2/">How-to and Troubleshooting - wpForo 2.0</category>                        <dc:creator>alexas</dc:creator>
                        <guid isPermaLink="true">https://wpforo.com/community/how-to-and-troubleshooting-2/i-want-my-topics-to-show-latest-reply-to-oldest-reply/#post-48770</guid>
                    </item>
				                    <item>
                        <title>Answer to: I want my topics to show &quot; latest reply to oldest reply&quot;</title>
                        <link>https://wpforo.com/community/how-to-and-troubleshooting-2/i-want-my-topics-to-show-latest-reply-to-oldest-reply/#post-48693</link>
                        <pubDate>Fri, 11 Dec 2020 16:07:39 +0000</pubDate>
                        <description><![CDATA[@om-vitalii,
Unfortunately the peace of code is moved to a core file. So there is no way to do this customization. In upcoming version, we&#039;ll add a new hook in the core file and let you do ...]]></description>
                        <content:encoded><![CDATA[<p>@om-vitalii,</p>
<p>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.</p>]]></content:encoded>
						                            <category domain="https://wpforo.com/community/how-to-and-troubleshooting-2/">How-to and Troubleshooting - wpForo 2.0</category>                        <dc:creator>Robert</dc:creator>
                        <guid isPermaLink="true">https://wpforo.com/community/how-to-and-troubleshooting-2/i-want-my-topics-to-show-latest-reply-to-oldest-reply/#post-48693</guid>
                    </item>
				                    <item>
                        <title>RE: I want my topics to show &quot; latest reply to oldest reply&quot;</title>
                        <link>https://wpforo.com/community/how-to-and-troubleshooting-2/i-want-my-topics-to-show-latest-reply-to-oldest-reply/#post-48653</link>
                        <pubDate>Fri, 11 Dec 2020 00:10:30 +0000</pubDate>
                        <description><![CDATA[I use 4th layout (threaded). I`ve seen your old reply here

but seems templates are changed from 2018 and now In Index I see this

elseif( in_array(WPF()-&gt;current_object, a...]]></description>
                        <content:encoded><![CDATA[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()-&gt;current_object, array('forum', 'topic')) ){
                        wpforo_template('forum');
                        if( WPF()-&gt;current_object === '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
<div id="wpfa-0" class="wpforo-attached-file"><a class="wpforo-default-attachment" href="//wpforo.com/wp-content/uploads/wpforo/default_attachments/1607645430-Screenshot-2020-12-11-at-015355.png" target="_blank"><i class="fas fa-paperclip"></i>&nbsp;Screenshot-2020-12-11-at-01.53.55.png</a></div>]]></content:encoded>
						                            <category domain="https://wpforo.com/community/how-to-and-troubleshooting-2/">How-to and Troubleshooting - wpForo 2.0</category>                        <dc:creator>om.vitalii</dc:creator>
                        <guid isPermaLink="true">https://wpforo.com/community/how-to-and-troubleshooting-2/i-want-my-topics-to-show-latest-reply-to-oldest-reply/#post-48653</guid>
                    </item>
							        </channel>
        </rss>
		