I want to create a list of sponsor logos and change the ‘post permalink’ to a custom link (sponsor’s website). Because each logo is a custom post type, I am customising the CPT block.
All logos are pulled into the email and formatted correctly, however, the default link needs to change.
Within the block.php, the line I need to change is either:
<href=”<?php echo tnp_post_permalink($row) ?>”
href=”<?php echo tnp_post_permalink($post) ?>”
$url = tnp_post_permalink($post);
The custom field link I need to add is: cv_custom_url
How do I pull in the custom URL and replace the usual permalink?