Custom Field: url
When adding custom fields you can use the url type to display a field.
url Field Type
This will add a field that supports a URL.
'name' => 'property_field_url', // Required: Custom field key. 'label' => 'URL field', // Required: Field Label. 'type' => 'url', // Required: Field Type. 'maxlength' => '600', // Optional: Allowed character count. 'include' => array( 'property', 'rental' ), // Optional: Post types or exclude for all. 'class' => 'some-class-name', // Optional. Custom class name. 'width' => '1', // Optional. Field Width: 1, 2, 2-3, 3. 'help' => 'Optional: Help text.', // Optional: Help text. 'import' => 'preserve', // Optional: Do not update when imported.
Custom url field example:
Field validation: