Trouble getting site URL
-
I have a function in one of plugins I am setting a variable. But it is returning https://localhost/https://localhost/mysite/wp/wp-content/uploads/images/
Below are three ways I have done it.site_url() . "/wp-content/uploads/images/" ; //not working locally "../mysite/wp/wp-content/uploads/images/";///local version "./wp/wp-content/uploads/images/";/*online version*/
Viewing 5 replies - 1 through 5 (of 5 total)
Viewing 5 replies - 1 through 5 (of 5 total)
- The topic ‘Trouble getting site URL’ is closed to new replies.