WordPress.org

Make WordPress Core

Opened 2 years ago

#42702 new feature request

Most common issue inside post edit - "Links Live search".

Reported by: Softfully Owned by:
Milestone: Awaiting Review Priority: normal
Severity: normal Version: 4.9
Component: Permalinks Keywords:
Focuses: Cc:
PR Number:

Description

Most common issue in WP Back End Search:

My original parmalink is not matching with Search URL and for that way i have trouble in interlinking of blog articles to 1 post to another one because of wrong category URL.

I have set Primary category (Messaging).
But in Search you will see wrong category (Linux).

For more details please view below 2 attach files carefully…

https://drive.google.com/file/d/1XoDVa_zMygIWs8bFfgaSag4-iou7BCl3/view?usp=sharing

https://drive.google.com/file/d/1u5ZlOXAA_5q30qo-HLnO8Qtz75tJkj3Q/view?usp=sharing

For more details:
This above issue is in 2-fold i will try to explane you below…

Our website permalinks are configured like so: /%category%/%postname%/

The first issue is that although a primary category is set for all of my posts, when using the WordPress Link button, WordPress does not always insert the link using the primary category in the URL. I read that other people were having a similar issue where the categories where being inserted in alphabetical order. This does not seem to be the case for me as for the most part the permalink is working correctly, but not accross every post.

The second issue is that the post is not redirecting to the url which contains the primary category eg.

example.com/secondary/test-post
is not being redirected to the correct permalink as shown below
example.com/primary/test-post

Instead, the post is visable on both URL’s.

And for that way we have trouble in interlinking of blog articles to one post to another one because of wrong category URL

But if any fix in functions.php can help to resolved above issue and for that we need your help.

Your help would be appreciated.

Thank you.

Attachments (1)

screenshot.zip (340.1 KB) - added by Softfully 2 years ago.

Download all attachments as: .zip

Change History (1)

@Softfully
2 years ago

Note: See TracTickets for help on using tickets.