The functions that start with “get_” return the value to what’s calling it. So you would do <a href="https://wordpress.stackexchange.com/questions/11893/<?php echo get_site_url(); ?>">
instead to print out the URL.
Related Posts:
- Redirecting to old domain after migration
- Change logo url link
- How do I write the link from front-page.php to home.php?
- how to make URL link query string
- 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
- In-page link works in Firefox but not in Chrome
- Let WordPress to go opening an external URL
- 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)
- Difference between esc_url() and esc_url_raw()
- How to use relative links on my pages?
- Remove All Query Arg
- Pulling a parameter out of the URL of a WP link without “?” or being sent to a different page
- Run WordPress frontend and backend in different domains
- How to set global variable in functions.php
- Adding a hook to ‘parse_request’ so that siteurl/pagename/xyz ignores “xyz”
- How to have numeric URLs in Posts and Pages
- Why WordPress automatically removes http from the url of my website’s sub domain?
- WordPress Move to SSL How to Update Media Assets to HTTPS?
- Moving wp-content outside of web root?
- Adding target and _blank as it’s value to the allowedtags
- permalink for category pages and posts
- How to create a custom page base on URL for WordPress?
- How to make menu items active based on hash
- Multiple domain names for one site
- How to always rewrite author archive page URL even if the author does not have a post
- Handling URLs in WordPress application
- URL parsing – what is it?
- Components used in Themes and Plugins: How to get file URL?
- Site URL always in front of other URLs
- Easiest way to simulate WordPress’s URL resolution to retrieve post ID, etc?
- Moving a test WP site to live
- Insert “javascript:void(0);” into URL
- Allow Chinese character on post URL slug
- Problem with change url for all subpages (.htaccess)
- How to handle this URL Structure. Keep getting “page not found”
- Custom url in wordpress
- How to auto gen. custom post type values in other custom post type in url?
- WordPress get parameter ‘unapproved’ and ‘moderation-hash’
- URL issue after migrating to dev site
- Misentered the site address url. How to recover? [closed]
- How to call for bloginfo inside function in functions.php?
- What can I replace ‘.get_bloginfo(‘url’).’ with to return the current URL rather than the home address?
- How to get CGI variables?
- How do I make WordPress “Page” link in the top nav bar go to an external URL?
- What is the best way to figure out which template file that a “pretty permalink” is using?
- WordPress Subcategory Creates 2 urls for same page (serious issue)
- How to see an item in the admin from its URL? (not sure if it’s a page, post, or what)
- Can’t change the wordpress site url
- Cannot access WordPress website from external IP while internally it is working properly [closed]
- Pass form input via url variable
- Rewrite Most WordPress URLs
- How to make WordPress urls matching static html urls
- Using WordPress for a site’s static marketing pages and blog at different URLs
- What is the best way to revert to www version of domain name?
- Need to check if user is on a particular page
- Hook for feed creation?
- How to set path to the image instead of alt in media.php?
- Changing url of author page
- How to get previous and Next Post Url in the_post_navigation
- Can non-latin characters appear in slugs?
- Encode URL for WhatsApp “click to chat” without loosing accented characters
- append currency to URL
- URLs for (MultiSite) link images are always relative
- Locked myself out of WordPress because I changed my URL and computer shut down
- Cant access my wordpress.org locally
- I changed the URL [closed]
- WP site homepage displays url link at beginning of each featured post
- Unable to login after changing WordPress site url
- Why is my WordPress URL shortened
- How to create URL for Pages/Posts
- Difference and usage of uri (e.g. get_directory_uri) and absolute path (e.g. get_directory)
- Private Messages between users
- Navigation and Permalink not getting correctly
- How to get the correct URL on my wordpress site?
- How to redirect WP post with a specific word in the URL
- Duplicate content with the same URL, google authorship
- Making a site URL
- Avoid too long words in a post title, post content or comment but only if its not a url
- Change URL to filter posts
- Modify WordPress to not replace + (plus) characters from URLs?
- Accessing a file saved outside webroot in a wordpress post
- Is There a Way to Schedule URL to Content Updates?
- I changed my url and cant access my site, Help?
- How to change Ugly link?
- Accidentally changed the url
- Select Tab name to show in browser’s URL
- How to make media URLs Unique
- Dynamic Buttons According to URL parameter
- WordPress Address and Site Address differ
- WordPress URLs changed to relative on transferring server
- /?clearcache=1670318470 showing up in URL after client logs in
- My Website’s Main URL redirects me to an Archive Page