AJAX and custom pages

I think there’s a misunderstanding here about how browser page requests work, and how PHP loads and runs WordPress When you make a request to WordPress, PHP loads WordPress and processes the page, then it’s all cleaned up and thrown away. Unlike other platforms such as Java or Python, there is no continuously running program … Read more

opens like sitename.com/URL

sgdghd.com is not a complete URL on its own, and if used in a link like <a href=”https://wordpress.stackexchange.com/questions/358412/sgdghd.com”>, it will be treated as a relative URL. To properly link to a different domain, you need to include http:// or https://. To ensure that a value for href is a valid URL, you should use esc_url() … Read more