The Url
tag gets various URLs for links.
Example
<Url plugins />
URLs
current
- URL of the current pagesite
- Site roothome
- Homeadmin
- URL ofwp-admin
theme
- Themechild_theme
- Child themecontent
- URL ofwp-content
plugins
- Plugins folderuploads
- Uploads folder
Login, logout, register
These URLs redirect to the site home page by default.
Pass a parameter redirect
to set the redirect URL.
login
- Loginlogout
- Logoutregister
- User registration
Multisite
network_site
- Network site rootnetwork_home
- Network homenetwork_admin
- Network admin
URL Query
The "query", in this context, means the part of a URL that comes after ?
(question mark).
For example, let's take this URL: https://example.com?color=blue&size=small
The full query string is color=blue&size=small
.
Each query parameter has name, =
(equal sign), and value. They are joined with &
(ampersand).
Use the query
attribute to get a parameter by name:
<Url query=color />
In this example, the value is blue
.