I’m using this code in a Hook Element to display custom fields from the WordPress post type.
<?php
$website_custom_field = get_post_meta( get_the_ID(), 'website', true );
$email_custom_field = get_post_meta( get_the_ID(), 'email', true );
echo "<p style='padding-top:20px;'><strong>Website:</strong> " .$website_custom_field. "<br>";
echo "<strong>Email:</strong> " .$email_custom_field. "</p>";
?>
How would I do the same for the custom post type ‘asd-providers’. I’m using Custom Post Type UI and Advanced Custom Fields in this scheme.
Thanks!
-Rick