<?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>
									How can permanently use the topic id for slug - How-to and Troubleshooting - wpForo 2.0				            </title>
            <link>https://wpforo.com/community/how-to-and-troubleshooting-2/how-can-permanently-use-the-topic-id-for-slug/</link>
            <description>Discussion Board</description>
            <language>en-US</language>
            <lastBuildDate>Sun, 06 Sep 2026 21:22:14 +0000</lastBuildDate>
            <generator>wpForo</generator>
            <ttl>60</ttl>
							                    <item>
                        <title>RE: How can permanently use the topic id for slug</title>
                        <link>https://wpforo.com/community/how-to-and-troubleshooting-2/how-can-permanently-use-the-topic-id-for-slug/#post-75374</link>
                        <pubDate>Wed, 26 Oct 2022 10:07:19 +0000</pubDate>
                        <description><![CDATA[@kilany,
Something wrong with your database setup. It seems your WordPress doesn&#039;t have access to MySQL&#039;s information_schema.tables. This is an unusual issue.
In any case, I just updated t...]]></description>
                        <content:encoded><![CDATA[<p>@kilany,</p>
<p>Something wrong with your database setup. It seems your WordPress doesn't have access to MySQL's information_schema.tables. This is an unusual issue.</p>
<p>In any case, I just updated the script. It should work in your case as well. Please delete the previous script. Again, make sure it's deleted, then copy and use the new script.</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/how-can-permanently-use-the-topic-id-for-slug/#post-75374</guid>
                    </item>
				                    <item>
                        <title>RE: How can permanently use the topic id for slug</title>
                        <link>https://wpforo.com/community/how-to-and-troubleshooting-2/how-can-permanently-use-the-topic-id-for-slug/#post-75260</link>
                        <pubDate>Sun, 23 Oct 2022 22:46:35 +0000</pubDate>
                        <description><![CDATA[@robert I test it on another WP that still slug fixed number]]></description>
                        <content:encoded><![CDATA[@robert I test it on another WP that still slug fixed number]]></content:encoded>
						                            <category domain="https://wpforo.com/community/how-to-and-troubleshooting-2/">How-to and Troubleshooting - wpForo 2.0</category>                        <dc:creator>Kilany</dc:creator>
                        <guid isPermaLink="true">https://wpforo.com/community/how-to-and-troubleshooting-2/how-can-permanently-use-the-topic-id-for-slug/#post-75260</guid>
                    </item>
				                    <item>
                        <title>RE: How can permanently use the topic id for slug</title>
                        <link>https://wpforo.com/community/how-to-and-troubleshooting-2/how-can-permanently-use-the-topic-id-for-slug/#post-75023</link>
                        <pubDate>Mon, 17 Oct 2022 19:12:20 +0000</pubDate>
                        <description><![CDATA[@robert I am using Cloudflare so I wanna check it]]></description>
                        <content:encoded><![CDATA[@robert I am using Cloudflare so I wanna check it]]></content:encoded>
						                            <category domain="https://wpforo.com/community/how-to-and-troubleshooting-2/">How-to and Troubleshooting - wpForo 2.0</category>                        <dc:creator>Kilany</dc:creator>
                        <guid isPermaLink="true">https://wpforo.com/community/how-to-and-troubleshooting-2/how-can-permanently-use-the-topic-id-for-slug/#post-75023</guid>
                    </item>
				                    <item>
                        <title>RE: How can permanently use the topic id for slug</title>
                        <link>https://wpforo.com/community/how-to-and-troubleshooting-2/how-can-permanently-use-the-topic-id-for-slug/#post-75016</link>
                        <pubDate>Mon, 17 Oct 2022 18:46:36 +0000</pubDate>
                        <description><![CDATA[@kilany,
That&#039;s just impossible. Are you testing on a live website? The code has been tested on 5 different hostings and on localhost, it works fine. Please make sure you&#039;ve copied and past...]]></description>
                        <content:encoded><![CDATA[<p>@kilany,</p>
<p>That's just impossible. Are you testing on a live website? The code has been tested on 5 different hostings and on localhost, it works fine. Please make sure you've copied and pasted the source code correctly, leave some screenshots. </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/how-can-permanently-use-the-topic-id-for-slug/#post-75016</guid>
                    </item>
				                    <item>
                        <title>RE: How can permanently use the topic id for slug</title>
                        <link>https://wpforo.com/community/how-to-and-troubleshooting-2/how-can-permanently-use-the-topic-id-for-slug/#post-75008</link>
                        <pubDate>Mon, 17 Oct 2022 14:48:47 +0000</pubDate>
                        <description><![CDATA[@robert its still same number slug fixed on number 2]]></description>
                        <content:encoded><![CDATA[@robert its still same number slug fixed on number 2]]></content:encoded>
						                            <category domain="https://wpforo.com/community/how-to-and-troubleshooting-2/">How-to and Troubleshooting - wpForo 2.0</category>                        <dc:creator>Kilany</dc:creator>
                        <guid isPermaLink="true">https://wpforo.com/community/how-to-and-troubleshooting-2/how-can-permanently-use-the-topic-id-for-slug/#post-75008</guid>
                    </item>
				                    <item>
                        <title>RE: How can permanently use the topic id for slug</title>
                        <link>https://wpforo.com/community/how-to-and-troubleshooting-2/how-can-permanently-use-the-topic-id-for-slug/#post-75004</link>
                        <pubDate>Mon, 17 Oct 2022 14:20:16 +0000</pubDate>
                        <description><![CDATA[Posted by: @kilany 
The name of the forum and the name of the section, can I make them abbreviated to be for example with out the subforum

I&#039;m sorry, but there is no way to do a structur...]]></description>
                        <content:encoded><![CDATA[<blockquote data-userid="23027" data-postid="74998" data-mention="kilany">
<div class="wpforo-post-quote-author"><strong> Posted by: @kilany </strong></div>
<p>The name of the forum and the name of the section, can I make them abbreviated to be for example with out the subforum</p>
</blockquote>
<p>I'm sorry, but there is no way to do a structural change in URL.</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/how-can-permanently-use-the-topic-id-for-slug/#post-75004</guid>
                    </item>
				                    <item>
                        <title>RE: How can permanently use the topic id for slug</title>
                        <link>https://wpforo.com/community/how-to-and-troubleshooting-2/how-can-permanently-use-the-topic-id-for-slug/#post-75003</link>
                        <pubDate>Mon, 17 Oct 2022 14:18:30 +0000</pubDate>
                        <description><![CDATA[@kilany,,
I&#039;ve just updated the code, please copy again and replace the old one in your website.]]></description>
                        <content:encoded><![CDATA[<p>@kilany,,</p>
<p>I've just updated the code, please copy again and replace the old one in your website.</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/how-can-permanently-use-the-topic-id-for-slug/#post-75003</guid>
                    </item>
				                    <item>
                        <title>RE: How can permanently use the topic id for slug</title>
                        <link>https://wpforo.com/community/how-to-and-troubleshooting-2/how-can-permanently-use-the-topic-id-for-slug/#post-75001</link>
                        <pubDate>Mon, 17 Oct 2022 14:05:28 +0000</pubDate>
                        <description><![CDATA[@robert I create two posts they give same post ID on browser but on Database is okay it&#039;s have ID for each, So I mean it&#039;s make same slug for each creating post
 
 
&nbsp;slug.png]]></description>
                        <content:encoded><![CDATA[<p>@robert I create two posts they give same post ID on browser but on Database is okay it's have ID for each, So I mean it's make same slug for each creating post</p>
<p> </p>
<p> </p>
<div id="wpfa-13916" class="wpforo-attached-file"><a class="wpforo-default-attachment" href="//wpforo.com/wp-content/uploads/wpforo/default_attachments/1666015528-slug.png" target="_blank" title="slug.png"><i class="fas fa-paperclip"></i>&nbsp;slug.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>Kilany</dc:creator>
                        <guid isPermaLink="true">https://wpforo.com/community/how-to-and-troubleshooting-2/how-can-permanently-use-the-topic-id-for-slug/#post-75001</guid>
                    </item>
				                    <item>
                        <title>RE: How can permanently use the topic id for slug</title>
                        <link>https://wpforo.com/community/how-to-and-troubleshooting-2/how-can-permanently-use-the-topic-id-for-slug/#post-74998</link>
                        <pubDate>Mon, 17 Oct 2022 13:15:32 +0000</pubDate>
                        <description><![CDATA[@robert
Thank you very much. It works. I really appreciate this 😍 Is there a way to shorten the name of the forum, for example?example.com/forum/experience/1domain / forumname / subforum / ...]]></description>
                        <content:encoded><![CDATA[<p>@robert</p>
<p>Thank you very much. It works. I really appreciate this 😍 <br /><br />Is there a way to shorten the name of the forum, for example?<br /><br />example.com/forum/experience/1<br /><br />domain / forumname / subforum / postID<br /><br />The name of the forum and the name of the section, can I make them abbreviated to be for example with out the subforum<br /><br />example.com/forum/1</p>]]></content:encoded>
						                            <category domain="https://wpforo.com/community/how-to-and-troubleshooting-2/">How-to and Troubleshooting - wpForo 2.0</category>                        <dc:creator>Kilany</dc:creator>
                        <guid isPermaLink="true">https://wpforo.com/community/how-to-and-troubleshooting-2/how-can-permanently-use-the-topic-id-for-slug/#post-74998</guid>
                    </item>
				                    <item>
                        <title>RE: How can permanently use the topic id for slug</title>
                        <link>https://wpforo.com/community/how-to-and-troubleshooting-2/how-can-permanently-use-the-topic-id-for-slug/#post-74990</link>
                        <pubDate>Mon, 17 Oct 2022 10:32:50 +0000</pubDate>
                        <description><![CDATA[@kilany,
You can set the topic ID as the topic slug using hook code.
Put this code in a PHP snippet using Code Snippets plugin or in the functions.php file of your current active WordPress...]]></description>
                        <content:encoded><![CDATA[<p>@kilany,</p>
<p>You can set the topic ID as the topic slug using hook code.</p>
<p>Put this code in a PHP snippet using <a href="https://wordpress.org/plugins/code-snippets/" target="_blank" rel="noopener">Code Snippets</a> plugin or in the <span style="color: #ff0000">functions.php</span> file of your current active WordPress theme:</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_add_topic_data_filter'</span><span style="color: #000080">, </span><span style="color: #008d00;font-weight: bold">function</span>( <span style="color: #4985c9;font-weight: bold">$args </span>)<span style="color: #5163ac">{<br /></span><span style="color: #5163ac">    </span><span style="color: #008d00;font-weight: bold">if</span>( <span style="color: #0000e5;font-style: italic">wpfval</span>(<span style="color: #4985c9;font-weight: bold">$args</span><span style="color: #000080">, </span><span style="color: #c64741">'slug'</span>) )<span style="color: #5163ac">{<br /></span><span style="color: #5163ac">        </span><span style="color: #4985c9;font-weight: bold">$topicid </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">db</span><span style="color: #000080">-&gt;</span><span style="color: #0000e5;font-style: italic">get_var</span>(<span style="color: #c64741">"</span><span style="color: #e32c20">SELECT MAX(`topicid`) as topicid FROM `</span><span style="color: #c64741">" </span><span style="color: #000080">. </span><span style="color: #0000e5;font-style: italic">esc_sql</span>( <span style="color: #0000e5;font-style: italic">WPF</span>()<span style="color: #000080">-&gt;</span><span style="color: #0000e5;font-style: italic">tables</span><span style="color: #000080">-&gt;</span><span style="color: #0000e5;font-style: italic">topics </span>) <span style="color: #000080">. </span><span style="color: #c64741">"</span><span style="color: #e32c20">`</span><span style="color: #c64741">"</span>)<span style="color: #313131">;<br /></span><span style="color: #313131">        </span><span style="color: #008d00;font-weight: bold">if</span>( <span style="color: #4985c9;font-weight: bold">$topicid </span>)<span style="color: #5163ac">{<br /></span><span style="color: #5163ac">            </span><span style="color: #4985c9;font-weight: bold">$args</span><span style="color: #000080"> = (</span><span style="color: #000080;font-weight: bold">string</span><span style="color: #000080">) </span>( <span style="color: #0000e5;font-style: italic">intval</span>(<span style="color: #4985c9;font-weight: bold">$topicid</span>) <span style="color: #000080">+ 1 </span>)<span style="color: #313131">;<br /></span><span style="color: #313131">        </span><span style="color: #5163ac">}<br /></span><span style="color: #5163ac">    }<br /></span><span style="color: #5163ac">    </span><span style="color: #008d00;font-weight: bold">return </span><span style="color: #4985c9;font-weight: bold">$args</span><span style="color: #313131">;<br /></span><span style="color: #5163ac">}</span><span style="color: #000080">, 10</span>)<span style="color: #313131">;</span></pre>]]></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/how-can-permanently-use-the-topic-id-for-slug/#post-74990</guid>
                    </item>
							        </channel>
        </rss>
		