home_url instead of site_url
-
You should be using the home_url for your urls
site_url is the url of the WordPress installation
home_url is the url of root of the website
While they are often the same they can be different and its important for when they are different to use the home_url
On my site where we use a bedrock style to install wordpress and all the plugins
The urls are different and so your plugin doesn’t work
Viewing 5 replies - 1 through 5 (of 5 total)
Viewing 5 replies - 1 through 5 (of 5 total)
- The topic ‘home_url instead of site_url’ is closed to new replies.