- Log in to your WordPress dashboard.
- Navigate to "Custom Fields" in the "Edit Post" or "Edit Page" section.
- Find the name of the custom field and its corresponding value.
- Once you have found the custom field key, use the following code to display the custom field in your WordPress template:
<?php
$custom_field_value = get_post_meta( get_the_ID(), 'your_custom_field_name', true );
if ( $custom_field_value ) {
echo $custom_field_value;
}
?>
- Replace 'your_custom_field_name' with the actual name of your custom field.
- Save the changes and refresh your WordPress website to see the custom field displayed.