Profile URL with numbers – UserPro Forums https://forum.userproplugin.com/forums/topic/profile-url-with-numbers/feed/ Mon, 29 Apr 2024 15:52:24 +0000 https://bbpress.org/?v=2.6.2 en-US https://forum.userproplugin.com/forums/topic/profile-url-with-numbers/#post-28417 <![CDATA[Profile URL with numbers]]> https://forum.userproplugin.com/forums/topic/profile-url-with-numbers/#post-28417 Tue, 18 Mar 2014 00:47:04 +0000 ghog How can I generate a profile url without numbers? I have deleted all profile pages and re-installed Userpro but whenever I recreate pages I end up with something like profile-3. How can I just get a url without a number attached?

]]>
https://forum.userproplugin.com/forums/topic/profile-url-with-numbers/#post-28418 <![CDATA[Reply To: Profile URL with numbers]]> https://forum.userproplugin.com/forums/topic/profile-url-with-numbers/#post-28418 Tue, 18 Mar 2014 01:03:24 +0000 Foreigner Hi ghog. I’m just another customer…But have you completely deleted the pages? Be sure they’re not in the trash bin. If you’re sure they’ve been eliminated from the trash, then deleting them from the database is the likely next step–provided you are absolutely sure of what you’re doing and of course back up the DB first. It’s rare, though, that deleting them permanently from the trash doesn’t work.

]]>
https://forum.userproplugin.com/forums/topic/profile-url-with-numbers/#post-28423 <![CDATA[Reply To: Profile URL with numbers]]> https://forum.userproplugin.com/forums/topic/profile-url-with-numbers/#post-28423 Tue, 18 Mar 2014 02:54:30 +0000 ghog hi foreigner, thanks for the feedback. yes i deleted all the pages and emptied the trash also. i’ll check the db as you suggest. thanks

]]>
https://forum.userproplugin.com/forums/topic/profile-url-with-numbers/#post-28424 <![CDATA[Reply To: Profile URL with numbers]]> https://forum.userproplugin.com/forums/topic/profile-url-with-numbers/#post-28424 Tue, 18 Mar 2014 03:13:42 +0000 ghog just tried again. deleted existing pages, emptied trash, saved permalinks.
then after generating new pages with userpro 4 x pages of each are created.
so i end up with 4 profile pages, 4 membership pages etc.
not sure whats going on.

]]>
https://forum.userproplugin.com/forums/topic/profile-url-with-numbers/#post-28563 <![CDATA[Reply To: Profile URL with numbers]]> https://forum.userproplugin.com/forums/topic/profile-url-with-numbers/#post-28563 Wed, 19 Mar 2014 18:33:38 +0000 alistairgd Yes I am also interested to know how to stop having “profile-2” in the URL even when all pages are deleted, and userpro is removed and re-installed.

]]>
https://forum.userproplugin.com/forums/topic/profile-url-with-numbers/#post-28583 <![CDATA[Reply To: Profile URL with numbers]]> https://forum.userproplugin.com/forums/topic/profile-url-with-numbers/#post-28583 Wed, 19 Mar 2014 21:24:36 +0000 Tomas Samot You could try add this line to functions.php file in your theme
flush_rewrite_rules();

open your website page after that – delete that line. It will delete all rules and recreate them.

I guess Ahmed could add this to plugin activation hook

]]>
https://forum.userproplugin.com/forums/topic/profile-url-with-numbers/#post-28622 <![CDATA[Reply To: Profile URL with numbers]]> https://forum.userproplugin.com/forums/topic/profile-url-with-numbers/#post-28622 Thu, 20 Mar 2014 05:51:37 +0000 ghog thanks Tomas but i just want to be clear about your instructions.

1. add flush_rewrite_rules(); to functions.php
2. Visit website
3. delete flush_rewrite_rules(); from functions.php?

just not completely sure of the final steps you outline.

thanks

]]>
https://forum.userproplugin.com/forums/topic/profile-url-with-numbers/#post-28626 <![CDATA[Reply To: Profile URL with numbers]]> https://forum.userproplugin.com/forums/topic/profile-url-with-numbers/#post-28626 Thu, 20 Mar 2014 06:31:25 +0000 Tomas Samot Yes exactly 🙂

If you add this line at the top of your functions.php file (just after <?php tag, when you will visit website-that code will be executed, so after visiting -you can delete that code.

What exacly will ahppen-don’t know, so you may backup SQL DB, but this is WordPress function to clear all rules and then recreate only those who needed. so when you go to userpro plugin and save settings in url settings – they should be good. ALSO please first maybe go to pages and EDIT your permalink, so you may not need this function t all, maybe the problem is just permalink which can be edited in pages.

]]>
https://forum.userproplugin.com/forums/topic/profile-url-with-numbers/#post-28629 <![CDATA[Reply To: Profile URL with numbers]]> https://forum.userproplugin.com/forums/topic/profile-url-with-numbers/#post-28629 Thu, 20 Mar 2014 07:12:22 +0000 ghog thanks Thomas but the issue is that when creating pages Userpro creates over 20 duplicates of each page. so i am ending up with 20 x profile pages, 20 x members pages etc. UserPro is then assigning the last page created as the selected page. you think this is related to redirection rule?

]]>
https://forum.userproplugin.com/forums/topic/profile-url-with-numbers/#post-28631 <![CDATA[Reply To: Profile URL with numbers]]> https://forum.userproplugin.com/forums/topic/profile-url-with-numbers/#post-28631 Thu, 20 Mar 2014 08:12:06 +0000 ghog ahhh this is driving me crazy. i have deleted all pages. trashed all items. deleted pages from DB, reinstalled plugin and now I get 30 duplicates of each page.

]]>