Link created with custom field not showing correct
-
I have created a custom field for a link that gets repeated on several posts. This is the way I wrote the custom field in the template:
<a href="https://www.discountfan.de/<?php $zumangebot = get_post_meta(get_the_ID(), 'zum Angebot', true ); if ($zumangebot != '') { echo $zumangebot; }?>" target="_blank">zum Angebot</a>
The result for the custom field in the front end is correct.
This way I tried to get the link also into my list category posts string:
....customfield_display="zum Angebot" customfield_display_name="no"
Unfortunately now the result is, that I just get the blank URL of the link, that was written into the value field for custom fields.
Is there any possible solution?
Thanks for any answers
mxmanuel
- The topic ‘Link created with custom field not showing correct’ is closed to new replies.