If you have two categories and the same post ???!!

Let’s  say that we have two categories assigned to the same post ( which one appear with the permalink )

the one that appear is the one with the lowest ID number

so all we have to do is change two table in the database ( wp_terms , wp_taxaonmy )

example :

Let’s say that we have two categories ( blog , translation ) , we want the one to appear in the link is translation so we will change ( blog ) for a higher ID value than ( tranlsation ) , let’s give it a number may be (1000 ) to be sure not be lowest that the future categories we may add .

Important :
after that we must go to the post section in the ( admin dashboard ) and assign the categories again as it will be removed from the posts
( Besure that the post is assigned to both categories )

Advertisements
Leave a comment

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

%d bloggers like this: