Screenshots use sample data and English labels. Follow the translated instructions on this page; your theme, language, permissions and license can change the available controls. Select an image to view it at full size.
URL field: builder settings, storage key and validation options.URL field: sample controls in the content editor.
What it doesStores a sanitized URL.
Use it whenExternal links, landing pages, source URLs or button destinations.
How to configureSelect URL and enter an optional default URL.
Saved asA sanitized URL string.
EXAMPLE
Button Link
https://example.com/
Read a URL Field in PHP
Use the field Key from the builder as the second argument of get_post_meta(). Escape or sanitize the value for its final output context.
Use esc_url() when placing the value into an href or another URL context. Do not print a URL directly into HTML. Security: Escape the value for its output context; do not print unescaped post meta directly into HTML.