You forgot to add the “http” to the url
Try please this:
$link = "<a href="http://"https://wordpress.stackexchange.com/questions/254153/. $_COOKIE["link'] ."'>TEXT SHOWN</a>";
You also can adjust and add the http:// to the $_COOKIE
itself.
If you want that the new link will open in a new tab, add target="_blank"
like so:
$link = "<a href="http://"https://wordpress.stackexchange.com/questions/254153/. $_COOKIE["link'] ."' target="_blank">TEXT SHOWN</a>";
Related Posts:
- Redirecting to old domain after migration
- Change logo url link
- get_site_url is not returning anything?
- How do I write the link from front-page.php to home.php?
- how to make URL link query string
- Check if user is logged in to site A when visiting site B
- Renamed my website (URL) – how do I rename all within-page links to the old URL?
- How do I avoid messing up URLs when switching from example.com/subdir to example.com?
- Relative URLs within site
- Image not showing up in media loader success area – followup
- No https in url when writing links like:
- Create 600 links to separate files on google drive
- Set A Cookie To URL Parameter, Pass Cookie From Page To Page To Alter Post
- In-page link works in Firefox but not in Chrome
- Two domain site: Link base URLs point to wrong domain
- Why am I seeing ‘yes’ and ‘no’ in URLs crawled by Xenu?
- Typing local WordPress URL works, but clicking the same link does not
- WordPress rewrites my link with custom URL scheme to http(s)
- Custom plugin route in WordPress
- Why is ?doing_wp_cron being appended to my URLs
- use query string in URL to display content on the page
- Change default URL path (/blog/) of blog posts
- How to deal with WordPress on localhost
- How to convert the file path to a URL of the same file?
- Why is WordPress saving full-urls to the database?
- Get taxonomy slug from url
- Load images with http urls inside https post
- How to append a URL parameter to all outbound URLs
- Force the Website URL to Include “www” and to be Upper Case?
- WordPress and $_GET Params
- Why WP encodes UNICODE (UTF8) containing urls? Any drawbacks of UNICODE url?
- Unable to load static front page on home url
- Force home page to be https?
- add_query_arg() One Key with multiple values
- Change homepage url
- How to update media links in WordPress after migration?
- Check what is at URI (post, archive, etc…)
- How can I change all links on pages to point to a different domain from where the site is hosted?
- Why ids in urls don’t work but slugs do?
- Changing my site url from azure.net to custom domain
- Problem creating an edit link for a custom post type
- Check request URL for pattern
- Rewrite WordPress Standard Feed URL – /feed/ to feed.xml
- Set a custom URL for image in the Media Library?
- How to edit URL Slug?
- Publish Post when URL is available else reschedule the post in wordpress [duplicate]
- Change url links on members loops in buddypress
- Find file url in post content and add it to media library
- Localhost port is missing on some links after downgrading MAMP [closed]
- rewrite taxonomy-{taxonomy}-{term}.php terms
- Why am I seeing all these weird ‘loginid’ requests?
- How to generate a list of all urls
- Confusion about Site url and directory
- Multiple URLs with Numbers
- hijacking home_url for root relative paths
- How to properly print a 404 error without redirecton? (i.e. keeping the current URL)
- Will get_bloginfo(‘url’) return URL with backslash?
- Can anybody provide me with a function to generate slugs?
- Is there RELATIVE_PATH, like ABSPATH
- Accessing WordPress using “localhost” and local ip at the same time
- Porting site URLs to new host but with same domain name [closed]
- My #id is not showing in the url when the user clicks on the anchor tag
- Is there a way to test if a URL is part of the current blog?
- Showing my server ip in source code for several links not for all links
- An anchor name (id name) in the address bar
- Moving Website-URL
- How to prevent unknown addresses which are accessed from my wordpress website [closed]
- get_template_directory() returns wrong address on VPS
- Adding custom url to readmore link using get_permalink()
- Is there an URL listing latest posts
- What’s the URL to my blogs (from my home page – which is a “page”)
- Adding Parent Categories and keep current URLs
- How rewriting a url to make it SEO friendly
- WordPress option com_jce should not work
- Too many redirects (ERR_TOO_MANY_REDIRECTS) only on one page
- Add a paramter to page url
- Why my URL has an unknown character string?
- New to WP: links on static homepage are not working
- No url when downloading PDF
- Post not redirecting to non www after changing from www
- incorrect url in Snippet editor
- Use URL parameter to create dynamic content
- Generate new URL for popup form
- My website has some Crawling Errors?
- WordPress Address (URL) Reverts back
- Modify the WordPress URL
- Duplicate pages with ?s parameter
- Populate Website URL at registration time
- WordPress Update Links
- Why links are not linked if edited comment?
- wordpress url with format .com/category/sub-category
- URL Forwarding – wordpress links reverting back
- Get gallery url (Nextgen) [closed]
- help me remove this additional parameter in url
- Function to get custom post image URL
- How to run Wiki on the same host as WordPress and not get 404 errors when browsing to Wiki?
- Dynamic Buttons According to URL parameter
- WordPress Address and Site Address differ
- /?clearcache=1670318470 showing up in URL after client logs in
- My Website’s Main URL redirects me to an Archive Page