<?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>
									Sticky Topics Order - Need them in a certain order, regardless of current posts - General Discussions				            </title>
            <link>https://wpforo.com/community/general-discussions/sticky-posts-need-them-in-a-certain-order-regardless-of-current-posts/</link>
            <description>Discussion Board</description>
            <language>en-US</language>
            <lastBuildDate>Sun, 09 Aug 2026 07:18:56 +0000</lastBuildDate>
            <generator>wpForo</generator>
            <ttl>60</ttl>
							                    <item>
                        <title>RE: Sticky Topics Order - Need them in a certain order, regardless of current posts</title>
                        <link>https://wpforo.com/community/general-discussions/sticky-posts-need-them-in-a-certain-order-regardless-of-current-posts/#post-40042</link>
                        <pubDate>Fri, 17 Apr 2020 07:27:50 +0000</pubDate>
                        <description><![CDATA[@fastertomaster,
We just tested and all works fine. You should navigate to Dashboard &gt; Forums &gt; Dashboard and click on  button. Also, please delete website cache. I...]]></description>
                        <content:encoded><![CDATA[<p>@fastertomaster,</p>
<p>We just tested and all works fine. You should navigate to Dashboard &gt; Forums &gt; Dashboard and click on <span style="color: #ff0000"></span> button. Also, please delete website cache. I'm sure you're adding wrong IDs or you've not deleted the wpForo cache. Please provide more information in your separate topic, this topic is closed.</p>]]></content:encoded>
						                            <category domain="https://wpforo.com/community/general-discussions/">General Discussions</category>                        <dc:creator>Robert</dc:creator>
                        <guid isPermaLink="true">https://wpforo.com/community/general-discussions/sticky-posts-need-them-in-a-certain-order-regardless-of-current-posts/#post-40042</guid>
                    </item>
				                    <item>
                        <title>RE: Sticky Topics Order - Need them in a certain order, regardless of current posts</title>
                        <link>https://wpforo.com/community/general-discussions/sticky-posts-need-them-in-a-certain-order-regardless-of-current-posts/#post-39427</link>
                        <pubDate>Thu, 09 Apr 2020 01:21:56 +0000</pubDate>
                        <description><![CDATA[Hey @robert - was there ever a fix for this code? It&#039;s also not working for me.
In the access details you already have for my staging site forum  (Stop Working Harder) should be organis...]]></description>
                        <content:encoded><![CDATA[<p>Hey @robert - was there ever a fix for this code? It's also not working for me.</p>
<p>In the access details you already have for my staging site forum  (Stop Working Harder) should be organised as per the rules in the functions.php but it doesn't seem to work.</p>
<p>Clearing the cache's isn't effective.</p>
<p>Thanks!</p>]]></content:encoded>
						                            <category domain="https://wpforo.com/community/general-discussions/">General Discussions</category>                        <dc:creator>fastertomaster</dc:creator>
                        <guid isPermaLink="true">https://wpforo.com/community/general-discussions/sticky-posts-need-them-in-a-certain-order-regardless-of-current-posts/#post-39427</guid>
                    </item>
				                    <item>
                        <title>RE: Sticky Topics Order - Need them in a certain order, regardless of current posts</title>
                        <link>https://wpforo.com/community/general-discussions/sticky-posts-need-them-in-a-certain-order-regardless-of-current-posts/#post-24931</link>
                        <pubDate>Sat, 16 Mar 2019 00:40:00 +0000</pubDate>
                        <description><![CDATA[Forums.]]></description>
                        <content:encoded><![CDATA[<p>Forums.</p>]]></content:encoded>
						                            <category domain="https://wpforo.com/community/general-discussions/">General Discussions</category>                        <dc:creator>VereK</dc:creator>
                        <guid isPermaLink="true">https://wpforo.com/community/general-discussions/sticky-posts-need-them-in-a-certain-order-regardless-of-current-posts/#post-24931</guid>
                    </item>
				                    <item>
                        <title>RE: Sticky Topics Order - Need them in a certain order, regardless of current posts</title>
                        <link>https://wpforo.com/community/general-discussions/sticky-posts-need-them-in-a-certain-order-regardless-of-current-posts/#post-24882</link>
                        <pubDate>Fri, 15 Mar 2019 09:24:41 +0000</pubDate>
                        <description><![CDATA[Where exactly? On Forum page or on Topics page?
Have you deleted wpForo cache in Dashboard &gt; Forums &gt; Dashboard admin page before checking? Check this post please:]]></description>
                        <content:encoded><![CDATA[<p>Where exactly? On Forum page or on Topics page?</p>
<p>Have you deleted wpForo cache in Dashboard &gt; Forums &gt; Dashboard admin page before checking? Check this post please: https://wpforo.com/community/general-discussions/sticky-posts-need-them-in-a-certain-order-regardless-of-current-posts/#post-21543</p>]]></content:encoded>
						                            <category domain="https://wpforo.com/community/general-discussions/">General Discussions</category>                        <dc:creator>Robert</dc:creator>
                        <guid isPermaLink="true">https://wpforo.com/community/general-discussions/sticky-posts-need-them-in-a-certain-order-regardless-of-current-posts/#post-24882</guid>
                    </item>
				                    <item>
                        <title>RE: Sticky Topics Order - Need them in a certain order, regardless of current posts</title>
                        <link>https://wpforo.com/community/general-discussions/sticky-posts-need-them-in-a-certain-order-regardless-of-current-posts/#post-24855</link>
                        <pubDate>Thu, 14 Mar 2019 20:37:42 +0000</pubDate>
                        <description><![CDATA[This code no longer functions since the 1.6 update.]]></description>
                        <content:encoded><![CDATA[<p>This code no longer functions since the 1.6 update.</p>]]></content:encoded>
						                            <category domain="https://wpforo.com/community/general-discussions/">General Discussions</category>                        <dc:creator>VereK</dc:creator>
                        <guid isPermaLink="true">https://wpforo.com/community/general-discussions/sticky-posts-need-them-in-a-certain-order-regardless-of-current-posts/#post-24855</guid>
                    </item>
				                    <item>
                        <title>RE: Sticky Topics Order - Need them in a certain order, regardless of current posts</title>
                        <link>https://wpforo.com/community/general-discussions/sticky-posts-need-them-in-a-certain-order-regardless-of-current-posts/paged/2/#post-21545</link>
                        <pubDate>Sun, 02 Dec 2018 17:35:48 +0000</pubDate>
                        <description><![CDATA[Thank you again @Robert! Deleting all caches did the trick.I&#039;m learning a lot!I really love this forum plugin, and I appreciate your support!]]></description>
                        <content:encoded><![CDATA[<p>Thank you again @Robert! Deleting all caches did the trick.</p><p>I'm learning a lot!</p><p>I really love this forum plugin, and I appreciate your support!</p><p> </p>]]></content:encoded>
						                            <category domain="https://wpforo.com/community/general-discussions/">General Discussions</category>                        <dc:creator>thedrawingboard</dc:creator>
                        <guid isPermaLink="true">https://wpforo.com/community/general-discussions/sticky-posts-need-them-in-a-certain-order-regardless-of-current-posts/paged/2/#post-21545</guid>
                    </item>
				                    <item>
                        <title>RE: Sticky Topics Order - Need them in a certain order, regardless of current posts</title>
                        <link>https://wpforo.com/community/general-discussions/sticky-posts-need-them-in-a-certain-order-regardless-of-current-posts/#post-21543</link>
                        <pubDate>Sun, 02 Dec 2018 17:05:18 +0000</pubDate>
                        <description><![CDATA[It works for all pages. Just navigate to Dashboard &gt; Forums &gt; Dashboard admin page and click on . Then Delete your website cache and check it again.In any case pleas...]]></description>
                        <content:encoded><![CDATA[<p>It works for all pages. Just navigate to <span style="color: #0000ff">Dashboard &gt; Forums &gt; Dashboard</span> admin page and click on <span style="color: #ff0000"></span>. Then Delete your website cache and check it again.</p><p>In any case please leave your forum URL to understand what is your forum hierarchy. On the forum home page if you have sub-forums under one forum and all they have sticky topics this will not sort. In other cases it works fine on forum list as well as in topic list.</p>]]></content:encoded>
						                            <category domain="https://wpforo.com/community/general-discussions/">General Discussions</category>                        <dc:creator>Robert</dc:creator>
                        <guid isPermaLink="true">https://wpforo.com/community/general-discussions/sticky-posts-need-them-in-a-certain-order-regardless-of-current-posts/#post-21543</guid>
                    </item>
				                    <item>
                        <title>RE: Sticky Topics Order - Need them in a certain order, regardless of current posts</title>
                        <link>https://wpforo.com/community/general-discussions/sticky-posts-need-them-in-a-certain-order-regardless-of-current-posts/#post-21537</link>
                        <pubDate>Sun, 02 Dec 2018 16:28:33 +0000</pubDate>
                        <description><![CDATA[Something interesting...I added the code provided and the sticky posts are now showing up in the order I need them to be in, but only when you are viewing just the actual forum. For example,...]]></description>
                        <content:encoded><![CDATA[<p>Something interesting...</p><p>I added the code provided and the sticky posts are now showing up in the order I need them to be in, but only when you are viewing just the actual forum. </p><p>For example, I am using the Extended layout. </p><p>On the Home page of the Forum, I can see each Forum with the Topics listed below the Forum. In this topics list, the sticky posts are NOT in the order that I entered in the code. </p><p>However, if I click on the Forum title to go into that page (viewing just that Forum), THEN the sticky posts are in the order that I entered them in the code. </p><p>I thought this might be a cache issue, but I tried viewing the Forum in several different browser and I am seeing the same thing happening - where the Home page lists the sticky topics chronologically, and the actual Forum page lists them in the order set by the code. </p><p>@Robert - is this by design? Or do I need to change the code somewhere else, as well?</p><p>Thanks again!</p>]]></content:encoded>
						                            <category domain="https://wpforo.com/community/general-discussions/">General Discussions</category>                        <dc:creator>thedrawingboard</dc:creator>
                        <guid isPermaLink="true">https://wpforo.com/community/general-discussions/sticky-posts-need-them-in-a-certain-order-regardless-of-current-posts/#post-21537</guid>
                    </item>
				                    <item>
                        <title>RE: Sticky Topics Order - Need them in a certain order, regardless of current posts</title>
                        <link>https://wpforo.com/community/general-discussions/sticky-posts-need-them-in-a-certain-order-regardless-of-current-posts/#post-21536</link>
                        <pubDate>Sun, 02 Dec 2018 15:21:23 +0000</pubDate>
                        <description><![CDATA[Thank you, Robert!!!This is VERY helpful to me, and I sincerely appreciate your support.Off to fix my sticky posts. :-) Thanks again.Cheers!]]></description>
                        <content:encoded><![CDATA[<p>Thank you, Robert!!!</p><p>This is VERY helpful to me, and I sincerely appreciate your support.</p><p>Off to fix my sticky posts. :-) </p><p>Thanks again.</p><p>Cheers!</p>]]></content:encoded>
						                            <category domain="https://wpforo.com/community/general-discussions/">General Discussions</category>                        <dc:creator>thedrawingboard</dc:creator>
                        <guid isPermaLink="true">https://wpforo.com/community/general-discussions/sticky-posts-need-them-in-a-certain-order-regardless-of-current-posts/#post-21536</guid>
                    </item>
				                    <item>
                        <title>RE: Sticky Posts - Need them in a certain order, regardless of current posts</title>
                        <link>https://wpforo.com/community/general-discussions/sticky-posts-need-them-in-a-certain-order-regardless-of-current-posts/#post-21515</link>
                        <pubDate>Sun, 02 Dec 2018 10:28:18 +0000</pubDate>
                        <description><![CDATA[Hi @thedrawingboard,
The only way to order sticky topics is using custom function. Please put this code in current activate theme functions.php file. There is a good instruction How to Easi...]]></description>
                        <content:encoded><![CDATA[<p>Hi @thedrawingboard,</p>
<p>The only way to order sticky topics is using custom function. Please put this code in current activate theme functions.php file. There is a good instruction <a href="https://www.wpbeginner.com/plugins/how-to-easily-add-custom-code-in-wordpress-without-breaking-your-site/" target="true">How to Easily Add Custom Code in WordPress (without Breaking Your Site)</a>.</p>
<pre><span style="color: #008d00;font-weight: bold">function </span><span style="color: #0000e5;font-weight: bold">custom_order_sticky_topics</span>( <span style="color: #4985c9;font-weight: bold">$topics </span>) <span style="color: #5163ac">{<br /></span><span style="color: #5163ac"><br /></span>    <span style="color: #4985c9;font-weight: bold">$rules </span><span style="color: #000080">= </span><span style="color: #008d00;font-weight: bold">array</span>()<span style="color: #313131">;<br /></span><span style="color: #313131"><br /></span>    <span style="color: #e19312;font-style: italic">//$rules = array( First TopicID, Second TopicID );<br /></span>    <span style="color: #4985c9;font-weight: bold">$rules</span><span style="color: #000080"> = </span><span style="color: #008d00;font-weight: bold">array</span>(<span style="color: #000080">19, 6</span>)<span style="color: #313131">;<br /></span>    <span style="color: #4985c9;font-weight: bold">$rules</span><span style="color: #000080"> = </span><span style="color: #008d00;font-weight: bold">array</span>(<span style="color: #000080">26, 63, 68</span>)<span style="color: #313131">;<br /></span><span style="color: #313131"><br /></span>    <span style="color: #008d00;font-weight: bold">if</span>( <span style="color: #0000e5;font-style: italic">function_exists</span>(<span style="color: #c64741">'WPF'</span>) <span style="color: #000080">&amp;&amp; </span><span style="color: #008d00;font-weight: bold">isset</span>(<span style="color: #0000e5;font-style: italic">WPF</span>()<span style="color: #000080">-&gt;</span><span style="color: #0000e5;font-style: italic">current_object</span><span style="color: #000080"></span>) )<span style="color: #5163ac">{<br /></span>        <span style="color: #008d00;font-weight: bold">if</span>( <span style="color: #0000e5;font-style: italic">WPF</span>()<span style="color: #000080">-&gt;</span><span style="color: #0000e5;font-style: italic">current_object</span><span style="color: #000080"> == </span><span style="color: #c64741">'forum' </span><span style="color: #000080">|| </span><span style="color: #0000e5;font-style: italic">WPF</span>()<span style="color: #000080">-&gt;</span><span style="color: #0000e5;font-style: italic">current_object</span><span style="color: #000080"> == </span><span style="color: #c64741">'topic' </span>)<span style="color: #5163ac">{<br /></span>            <span style="color: #4985c9;font-weight: bold">$tmp </span><span style="color: #000080">= </span><span style="color: #008d00;font-weight: bold">array</span>()<span style="color: #313131">; </span><span style="color: #4985c9;font-weight: bold">$ordered </span><span style="color: #000080">= </span><span style="color: #008d00;font-weight: bold">array</span>()<span style="color: #313131">;<br /></span>            <span style="color: #008d00;font-weight: bold">if</span>( <span style="color: #008d00;font-weight: bold">empty</span>(<span style="color: #4985c9;font-weight: bold">$topics</span>) <span style="color: #000080">|| !</span><span style="color: #008d00;font-weight: bold">isset</span>(<span style="color: #4985c9;font-weight: bold">$topics</span><span style="color: #000080"></span>) <span style="color: #000080">|| </span><span style="color: #008d00;font-weight: bold">isset</span>(<span style="color: #4985c9;font-weight: bold">$topics</span><span style="color: #000080"></span>) )<span style="color: #5163ac">{ </span><span style="color: #008d00;font-weight: bold">return </span><span style="color: #4985c9;font-weight: bold">$topics</span><span style="color: #313131">; </span><span style="color: #5163ac">} </span><span style="color: #008d00;font-weight: bold">else </span><span style="color: #5163ac">{  </span><span style="color: #4985c9;font-weight: bold">$forumid </span><span style="color: #000080">= </span><span style="color: #4985c9;font-weight: bold">$topics</span><span style="color: #000080"></span><span style="color: #313131">; </span><span style="color: #5163ac">}<br /></span>            <span style="color: #008d00;font-weight: bold">if</span>( <span style="color: #000080">!</span><span style="color: #008d00;font-weight: bold">empty</span>( <span style="color: #4985c9;font-weight: bold">$rules </span>) <span style="color: #000080">&amp;&amp; </span><span style="color: #008d00;font-weight: bold">isset</span>( <span style="color: #4985c9;font-weight: bold">$rules</span><span style="color: #000080"> </span>) )<span style="color: #5163ac">{<br /></span>                <span style="color: #008d00;font-weight: bold">foreach</span>( <span style="color: #4985c9;font-weight: bold">$topics </span><span style="color: #008d00;font-weight: bold">as </span><span style="color: #4985c9;font-weight: bold">$key </span><span style="color: #000080">=&gt; </span><span style="color: #4985c9;font-weight: bold">$topic </span>)<span style="color: #5163ac">{ </span><span style="color: #008d00;font-weight: bold">if</span>( <span style="color: #008d00;font-weight: bold">isset</span>(<span style="color: #4985c9;font-weight: bold">$topic</span><span style="color: #000080"></span>)) <span style="color: #5163ac">{ </span><span style="color: #4985c9;font-weight: bold">$tmp</span><span style="color: #000080">[</span><span style="color: #4985c9;font-weight: bold">$topic</span><span style="color: #000080">] = </span><span style="color: #4985c9;font-weight: bold">$topic</span><span style="color: #313131">; </span><span style="color: #5163ac">} }<br /></span>                <span style="color: #008d00;font-weight: bold">if</span>( <span style="color: #000080">!</span><span style="color: #008d00;font-weight: bold">empty</span>(<span style="color: #4985c9;font-weight: bold">$tmp</span>) )<span style="color: #5163ac">{ </span><span style="color: #008d00;font-weight: bold">foreach</span>( <span style="color: #4985c9;font-weight: bold">$rules</span><span style="color: #000080"> </span><span style="color: #008d00;font-weight: bold">as </span><span style="color: #4985c9;font-weight: bold">$topicid </span>)<span style="color: #5163ac">{ </span><span style="color: #008d00;font-weight: bold">if</span>( <span style="color: #008d00;font-weight: bold">isset</span>(<span style="color: #4985c9;font-weight: bold">$tmp</span><span style="color: #000080"></span>) ) <span style="color: #5163ac">{ </span><span style="color: #4985c9;font-weight: bold">$ordered</span><span style="color: #000080">[] = </span><span style="color: #4985c9;font-weight: bold">$tmp</span><span style="color: #000080"></span><span style="color: #313131">; </span><span style="color: #008d00;font-weight: bold">unset</span>(<span style="color: #4985c9;font-weight: bold">$tmp</span><span style="color: #000080"></span>)<span style="color: #313131">; </span><span style="color: #5163ac">} } }<br /></span>                <span style="color: #4985c9;font-weight: bold">$topics </span><span style="color: #000080">= </span><span style="color: #0000e5;font-style: italic">array_merge</span>(<span style="color: #4985c9;font-weight: bold">$ordered</span><span style="color: #000080">, </span><span style="color: #4985c9;font-weight: bold">$tmp</span>)<span style="color: #313131">;<br /></span>                <span style="color: #4985c9;font-weight: bold">$topics </span><span style="color: #000080">= </span><span style="color: #0000e5;font-style: italic">array_values</span>(<span style="color: #4985c9;font-weight: bold">$topics</span>)<span style="color: #313131">;<br /></span>            <span style="color: #5163ac">}<br /></span><span style="color: #5163ac">        }<br /></span><span style="color: #5163ac">    }<br /></span>    <span style="color: #008d00;font-weight: bold">return </span><span style="color: #4985c9;font-weight: bold">$topics</span><span style="color: #313131">;<br /></span><span style="color: #5163ac">}<br /></span><span style="color: #0000e5;font-style: italic">add_filter</span>( <span style="color: #c64741">'wpforo_get_topics'</span><span style="color: #000080">, </span><span style="color: #c64741">'custom_order_sticky_topics'</span><span style="color: #000080">, 20</span>)<span style="color: #313131">;</span></pre>
<p> </p>
<p>This is the part where you should edit and change forum/topic IDs. For example you want to set <span style="color: #ff0000">topicid 19</span> first, then <span style="color: #ff0000">topicid 6</span> second in <span style="color: #ff0000">forumid 4</span> you add/edit the row:</p>
<pre><span style="color: #e19312;font-style: italic"><br /></span><span style="color: #4985c9;font-weight: bold">$rules</span><span style="color: #000080"> = </span><span style="color: #008d00;font-weight: bold">array</span>(<span style="color: #000080">19, 6</span>)<span style="color: #313131">;<br /></span></pre>
<p>If you don't have other forums where you want to add sticky topic ordering rules just remove the second line. I added this to show you can add as much <span style="color: #993300">$rules</span> as you want:</p>
<pre><span style="color: #4985c9;font-weight: bold">$rules</span><span style="color: #000080"> = </span><span style="color: #008d00;font-weight: bold">array</span>(<span style="color: #000080">26, 63, 68</span>)<span style="color: #313131">;</span></pre>
<p>https://wpforo.com/wp-content/uploads/2018/12/wpForo-custom-function-to-set-sticky-topic-order.png</p>
<p> </p>
<p><strong>Forum IDs</strong> can bi found in Dashboard &gt; Forums &gt; Forums admin page or in RSS Link</p>
<p>https://wpforo.com/wp-content/uploads/2018/12/wpForo-ForumID.png</p>
<p><strong>TopicIDs</strong> can be found in Topic Page's RSS link</p>
<p>https://wpforo.com/wp-content/uploads/2017/11/wpForo-Move-Post-to-Another-Topic-Step-1.png</p>
<p> </p>
<p><span style="color: #ff0000"><strong>Note:</strong></span> once the custom function is added in your theme functions.php file please navigate to Dashboard &gt; Forums &gt; Dashboard and click on <span style="color: #ff0000"></span> button. Also, please delete website cache.</p>
<p>This is only designed for the <a href="https://wpforo.com/docs/root/categories-and-forums/forum-layouts/threaded-layout/" target="true">Threaded Layout</a> home page. The screen where you see threaded layout recent topics. It may also work for the <a href="https://wpforo.com/docs/root/categories-and-forums/forum-layouts/extended-layout/" target="true">Extended layout</a> home page, but it's not tested yet. So please use this only for the threaded layout home page:</p>
<p>https://wpforo.com/wp-content/uploads/2020/04/wpForo-Threaded-layout-Sticky-Topics.png</p>
<p> </p>]]></content:encoded>
						                            <category domain="https://wpforo.com/community/general-discussions/">General Discussions</category>                        <dc:creator>Robert</dc:creator>
                        <guid isPermaLink="true">https://wpforo.com/community/general-discussions/sticky-posts-need-them-in-a-certain-order-regardless-of-current-posts/#post-21515</guid>
                    </item>
							        </channel>
        </rss>
		