<?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>
									Refer to the latest unread post without redirection - How-to and Troubleshooting - wpForo 2.0				            </title>
            <link>https://wpforo.com/community/how-to-and-troubleshooting-2/refer-to-the-latest-unread-post-without-redirection/</link>
            <description>Discussion Board</description>
            <language>en-US</language>
            <lastBuildDate>Sun, 14 Jun 2026 06:57:29 +0000</lastBuildDate>
            <generator>wpForo</generator>
            <ttl>60</ttl>
							                    <item>
                        <title>RE: Refer to the latest unread post without redirection</title>
                        <link>https://wpforo.com/community/how-to-and-troubleshooting-2/refer-to-the-latest-unread-post-without-redirection/#post-54490</link>
                        <pubDate>Fri, 11 Jun 2021 15:18:38 +0000</pubDate>
                        <description><![CDATA[@robert Thanks for your answer, We found and fixed the problem
I give you the part of code below in wpf-assets\js\front-end.js :
The first line in bold, the fix (with just before the code ...]]></description>
                        <content:encoded><![CDATA[<p>@robert Thanks for your answer, We found and fixed the problem</p>
<p>I give you the part of code below in wpf-assets\js\front-end.js :</p>
<p>The first line in bold, the fix (with just before the code in comments which was not working), and the second one in bold the code which was not reached</p>
<p> </p>
<div>
<div><span>$wpf</span><span>(</span><span>document</span><span>).</span><span>ready</span><span>(</span><span>function</span><span>(</span><span>$</span><span>) {</span></div>
<div><span>    </span><span>var</span><span> </span><span>wpforo_wrap</span><span> = </span><span>$</span><span>(</span><span>'#wpforo-wrap'</span><span>);</span></div>
<br />
<div><span>    </span><span>var</span><span> </span><span>scroll_to</span><span>;</span></div>
<div><span>    </span><span>//var exreg = new RegExp('\/' + wpforo.template_slugs + '\/(\\d+)\/?$', 'i');</span></div>
<div><span>    </span><span>//var match = location.pathname.match(exreg);</span></div>
<div><strong>    var match = location.hash.match(/^#post-(\d+)$/);</strong></div>
<div><span>    </span><span>if</span><span>(</span><span>match</span><span>){</span></div>
<div><span>        </span><span>scroll_to</span><span> = </span><span>$</span><span>(</span><span>'#post-'</span><span> + </span><span>match</span><span>);</span></div>
<div><span>    }</span><span>else</span><span>{</span></div>
<div><span>        </span><span>//scroll_to = $("#m_, .wpforo-members-content, .wpforo-search-content", wpforo_wrap);</span></div>
<div><span>    }</span></div>
<div><span>    </span><span>if</span><span>( </span><span>scroll_to</span><span> !== </span><span>undefined</span><span> &amp;&amp; </span><span>scroll_to</span><span>.</span><span>length</span><span> ){</span></div>
<div><strong>        $('html, body').scrollTop(scroll_to.offset().top - 25);</strong></div>
<div><span>    }</span></div>
</div>]]></content:encoded>
						                            <category domain="https://wpforo.com/community/how-to-and-troubleshooting-2/">How-to and Troubleshooting - wpForo 2.0</category>                        <dc:creator>Bono</dc:creator>
                        <guid isPermaLink="true">https://wpforo.com/community/how-to-and-troubleshooting-2/refer-to-the-latest-unread-post-without-redirection/#post-54490</guid>
                    </item>
				                    <item>
                        <title>RE: Refer to the latest unread post without redirection</title>
                        <link>https://wpforo.com/community/how-to-and-troubleshooting-2/refer-to-the-latest-unread-post-without-redirection/#post-54460</link>
                        <pubDate>Fri, 11 Jun 2021 05:21:22 +0000</pubDate>
                        <description><![CDATA[@bono,
I&#039;d look at this issue if you provide with some video showing the issue.]]></description>
                        <content:encoded><![CDATA[<div class="wpforo-post-content">
<p><a title="Bono" href="https://wpforo.com/community/profile/bono/">@bono</a>,</p>
<p>I'd look at this issue if you provide with some video showing the issue.</p>
</div>]]></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/refer-to-the-latest-unread-post-without-redirection/#post-54460</guid>
                    </item>
				                    <item>
                        <title>RE: Refer to the latest unread post without redirection</title>
                        <link>https://wpforo.com/community/how-to-and-troubleshooting-2/refer-to-the-latest-unread-post-without-redirection/#post-54456</link>
                        <pubDate>Thu, 10 Jun 2021 19:47:41 +0000</pubDate>
                        <description><![CDATA[@robert I think it is an issue link to the navigator, not to the OS
The issue is there with Opera too.
Since there is a redirection from the top of the page to the last unread message, I t...]]></description>
                        <content:encoded><![CDATA[<p>@robert I think it is an issue link to the navigator, not to the OS</p>
<p>The issue is there with Opera too.</p>
<p>Since there is a redirection from the top of the page to the last unread message, I think there is an issue with a JS function which is not available for some browser, don't you?</p>]]></content:encoded>
						                            <category domain="https://wpforo.com/community/how-to-and-troubleshooting-2/">How-to and Troubleshooting - wpForo 2.0</category>                        <dc:creator>mouette</dc:creator>
                        <guid isPermaLink="true">https://wpforo.com/community/how-to-and-troubleshooting-2/refer-to-the-latest-unread-post-without-redirection/#post-54456</guid>
                    </item>
				                    <item>
                        <title>RE: Refer to the latest unread post without redirection</title>
                        <link>https://wpforo.com/community/how-to-and-troubleshooting-2/refer-to-the-latest-unread-post-without-redirection/#post-54449</link>
                        <pubDate>Thu, 10 Jun 2021 16:12:25 +0000</pubDate>
                        <description><![CDATA[@robert Hello
after adding the code in your first reply, we don&#039;t have any problem with Chrome (PC and Mobile)
But, we have somes troubles on Firefox and iOs, when a topic is divided in pa...]]></description>
                        <content:encoded><![CDATA[<p>@robert Hello</p>
<p>after adding the code in your first reply, we don't have any problem with Chrome (PC and Mobile)</p>
<p>But, we have somes troubles on Firefox and iOs, when a topic is divided in pages, the rediction is on the top of the last page, but not on the last post wanted</p>
<p>Do you have any idea about this trouble ? any other feedbacks ?</p>
<p>Thanksss in advance for your help</p>]]></content:encoded>
						                            <category domain="https://wpforo.com/community/how-to-and-troubleshooting-2/">How-to and Troubleshooting - wpForo 2.0</category>                        <dc:creator>Bono</dc:creator>
                        <guid isPermaLink="true">https://wpforo.com/community/how-to-and-troubleshooting-2/refer-to-the-latest-unread-post-without-redirection/#post-54449</guid>
                    </item>
				                    <item>
                        <title>RE: Refer to the latest unread post without redirection</title>
                        <link>https://wpforo.com/community/how-to-and-troubleshooting-2/refer-to-the-latest-unread-post-without-redirection/#post-53869</link>
                        <pubDate>Thu, 20 May 2021 17:29:53 +0000</pubDate>
                        <description><![CDATA[@mouette,
The solution is not depended on OS, that has zero relation to your iOS.
So I don&#039;t have other advice here. If it works then it should work on all OS&#039;s, just make sure your login ...]]></description>
                        <content:encoded><![CDATA[<p>@mouette,</p>
<p>The solution is not depended on OS, that has zero relation to your iOS.</p>
<p>So I don't have other advice here. If it works then it should work on all OS's, just make sure your login status is the same, and you don't have cache. This is all.</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/refer-to-the-latest-unread-post-without-redirection/#post-53869</guid>
                    </item>
				                    <item>
                        <title>RE: Refer to the latest unread post without redirection</title>
                        <link>https://wpforo.com/community/how-to-and-troubleshooting-2/refer-to-the-latest-unread-post-without-redirection/#post-53838</link>
                        <pubDate>Mon, 17 May 2021 07:30:44 +0000</pubDate>
                        <description><![CDATA[@robert  bad news, it seems that this solution doesn&#039;t work with IOS 
Any idea please?]]></description>
                        <content:encoded><![CDATA[<p>@robert  bad news, it seems that this solution doesn't work with IOS </p>
<p>Any idea please?</p>]]></content:encoded>
						                            <category domain="https://wpforo.com/community/how-to-and-troubleshooting-2/">How-to and Troubleshooting - wpForo 2.0</category>                        <dc:creator>mouette</dc:creator>
                        <guid isPermaLink="true">https://wpforo.com/community/how-to-and-troubleshooting-2/refer-to-the-latest-unread-post-without-redirection/#post-53838</guid>
                    </item>
				                    <item>
                        <title>RE: Refer to the latest unread post without redirection</title>
                        <link>https://wpforo.com/community/how-to-and-troubleshooting-2/refer-to-the-latest-unread-post-without-redirection/#post-53748</link>
                        <pubDate>Wed, 12 May 2021 19:47:14 +0000</pubDate>
                        <description><![CDATA[@robert thank a lot for your answer!!
Honestly I don&#039;t understand why this is not by default in the forum???]]></description>
                        <content:encoded><![CDATA[<p>@robert thank a lot for your answer!!</p>
<p>Honestly I don't understand why this is not by default in the forum???</p>]]></content:encoded>
						                            <category domain="https://wpforo.com/community/how-to-and-troubleshooting-2/">How-to and Troubleshooting - wpForo 2.0</category>                        <dc:creator>mouette</dc:creator>
                        <guid isPermaLink="true">https://wpforo.com/community/how-to-and-troubleshooting-2/refer-to-the-latest-unread-post-without-redirection/#post-53748</guid>
                    </item>
				                    <item>
                        <title>RE: Refer to the latest unread post without redirection</title>
                        <link>https://wpforo.com/community/how-to-and-troubleshooting-2/refer-to-the-latest-unread-post-without-redirection/#post-53707</link>
                        <pubDate>Tue, 11 May 2021 13:00:57 +0000</pubDate>
                        <description><![CDATA[The redirection only works if the topic has more than one pages of replies. However, you can switch to the direct link generation with this hook code. Put it in the functions.php file of you...]]></description>
                        <content:encoded><![CDATA[<p>The redirection only works if the topic has more than one pages of replies. However, you can switch to the direct link generation with this hook code. Put it in the <span style="color: #ff0000">functions.php</span> file of your current active WordPress theme or install the <a href="https://wordpress.org/plugins/code-snippets/" target="true">Code Snippets plugin</a> and insert the code as a new code snippet. Then go to <span style="color: #3366ff">Dashboard &gt; Forums &gt; Dashboard</span> admin page and click the<span style="color: #ff0000"> </span> button.</p>
<pre style="color: #000000;font-size: 12.0pt" contenteditable="false"><span style="color: #0000e5;font-style: italic">add_filter</span>(<span style="color: #c64741">'wpforo_build_direct_unread_post_url'</span><span style="color: #000080">, </span><span style="color: #c64741">'__return_true'</span>)<span style="color: #313131">;</span></pre>
<p> </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/refer-to-the-latest-unread-post-without-redirection/#post-53707</guid>
                    </item>
				                    <item>
                        <title>Refer to the latest unread post without redirection</title>
                        <link>https://wpforo.com/community/how-to-and-troubleshooting-2/refer-to-the-latest-unread-post-without-redirection/#post-53696</link>
                        <pubDate>Tue, 11 May 2021 08:36:07 +0000</pubDate>
                        <description><![CDATA[Posted by: @robert 
And don&#039;t care about the page ID. It doesn&#039;t need page ID, it&#039;ll redirect and open correct post in correct page with post-id only. Just make sure the red marked options ...]]></description>
                        <content:encoded><![CDATA[<blockquote data-userid="1" data-postid="50858" data-mention="robert">
<div class="wpforo-post-quote-author"><strong> Posted by: @robert </strong></div>
<p>And don't care about the page ID. It doesn't need page ID, it'll redirect and open correct post in correct page with post-id only. Just make sure the red marked options are enabled and try to click the links of topics. You'll see that all works fine, and it goes to correct post with the correct page (even if the page number doesn't exist in the URL).</p>
</blockquote>
<p>Hi, </p>
<p>I see that the redirection of the page is the native functionality to go to the last unread post.</p>
<p>Unfortunately, this redirection can be really slow sometimes, users are really not satisfied with this feature, and I understand them.</p>
<p>Is there an evolution planned on this point so that the link goes directly to the right page of a topic?</p>
<p>It is not possible to calculate from the recent.php page where the post will be located according to the number of posts per page and the date of the post?</p>]]></content:encoded>
						                            <category domain="https://wpforo.com/community/how-to-and-troubleshooting-2/">How-to and Troubleshooting - wpForo 2.0</category>                        <dc:creator>mouette</dc:creator>
                        <guid isPermaLink="true">https://wpforo.com/community/how-to-and-troubleshooting-2/refer-to-the-latest-unread-post-without-redirection/#post-53696</guid>
                    </item>
							        </channel>
        </rss>
		