-
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?
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.
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
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.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.
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
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
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.
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?
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.
So do what i’ve wrote. Disabling plugin DOESN”T delete ANYTHING in DB. So you can re-enable it 1000 times-it won’t change a thing 🙂
ghog: I will be out for some time, try this please
DELETE ALL PAGES/ trash too.
Go to Setup pages tab in userpro settings ok ?
Make sure the slugs are without numbers and save settings first!
Also make sure you undo any code changes like flush etc.
Now try to rebuild pages please
but make sure that profile slugs option in setup pages tab are profile/ members/ etc. no numbers
and also make sure they are not in trash/main pagesLast check, please disable all other plugins while doing this
fantastic, after deactivating plugins it worked without duplicates.
thankyou!
You must be logged in to reply to this topic.