custom permalink for post only not custom post types

hi like state on the title , how can i achieve this ?
i’ve try lots of plugins and its all only work with custom post types only.

so here is the situation , i have a custom post types (food) , and for the recipes i use wordpress posts ,

and i want to make the post permalinks become /recipes/my-awesome-title for old and new post.
i know i can change this in permalink section but if i add /recipes/%postname/ ,

my custom post also become /recipes/food/my-awesome-title and that is not what i want.

i dont try any code yet except install couple of plugins since i can do codes in wp and depends on plugins instead.

according to this a link i have to register post type which i have no idea at all how to do that , please help me for those who capable of , thank you before for your kindness.

Read more here:: custom permalink for post only not custom post types

Leave a Reply

Your email address will not be published. Required fields are marked *