Adding /blog/ to single post urls in your WordPress

We can easily add the /blog the URL by updating permalinks in the settings, but in case that creates issues you can use the following code sample to update the URLs

 

 

 

Updated on Dec 24, 2021