1

I wonder if you can help me, please?

I have the following problem with a permalink.

I have tried to change the permalink for the following link from https://impactgoals.com/what-are-impact-goals-2/ to https://impactgoals.com/what-are-impact-goals/

by going into page on the Dashboard and editing it there. Each time that I save it, WP changes it back to what-are-impact-goals-2. I can change it to other things (eg impact-goals) but not to what-are-impact-goals.

I searched for help and one recommendation is to empty trash. I have no pages in trash.

Other is to check Media. Again, no similar link.

https://impactgoals.com/what-are-impact-goals/ takes me to my homepage.

I presume that WP has what-are-impact-goals recorded somewhere. Any ideas?

8
  • It does sound like something is trashed. If that's not the case you could search the wp_posts database table for the what-are-impact-goals slug, it's likely you'll find an old post there that hasn't been removed for some reason. Commented Jun 29, 2019 at 8:42
  • Hi, thanks for coming back on this. Trash isn't showing in Pages, so I assume it is empty. Is there somewhere else you would suggest looking?
    – Berni
    Commented Jun 29, 2019 at 8:55
  • How do I find the wp_posts database table?
    – Berni
    Commented Jun 29, 2019 at 8:56
  • 2
    are you sure there isn't a post rather than a page that is trashed? To view that table you need to look in the database, this is generally done through your hosting control panel using something like phpMyAdmin. However the issue your describing isn't something that generally occurs and WordPress should deal with automatically. It's very likely a page/post still exists with that "slug". Commented Jun 29, 2019 at 9:04
  • @Berni Could it be that the slug of your current front page (or some other non-trashed page) is what-are-impact-goals? Click Quick edit of the front page on your Pages list and change the slug if necessary. Commented Jun 29, 2019 at 14:31

1 Answer 1

0

May be the main reason of this issue is that the WordPress finds that this URLs already assign to any post which exists in database. so You have to check permalinks of the every pages/post or attachments are not using that permalink. It could be in publish, drafts or trash as well.

or you can find in wp_posts table in database from phpmyadmin. you can search using :

wp_posts > search tab > "post_name" operator LIKE%..%  value "what-are-impact-goals"

or you can fire SQL query in SQL tab:

SELECT * FROM `wp_posts` WHERE `post_name` LIKE '%what-are-impact-goals%'

Check there is permalink already exists or not. then after you can take action.

3
  • Brilliant. You've taught me loads, thank you. I've found it through the wp_posts table. It is associated with my home page as @Antti suggested. Problem is my home page ("I'm Home") doesn't show a slug in the Permalink. It simply gives my web address ("Permalink: impactgoals.com/"). Any thoughts about how it is hiding the "what-are-impact-goals" slug?
    – Berni
    Commented Jul 2, 2019 at 22:00
  • I've sorted it - I just needed to edit the entry in the wp-posts table. Thanks loads for your help.
    – Berni
    Commented Jul 2, 2019 at 22:21
  • @Berni - to answer your questions about how/why the slug was 'hidden', that happens when you select a Page to be your 'home' page under Settings>Reading, if you were to select a different Page, then the original one would once again show the full URL (permalink). That's done to allow you the freedom to change your 'home' page as you need to without worrying about its indexing in the search engines.
    – Trisha
    Commented Jul 3, 2019 at 16:35

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.