Use URL field in custom template
-
I’m trying to include a field in the testimonial that can link to a custom URL.
I have added a ‘URL’ type field and ticked the box saying “Show this field in the admin list table.”.
In my custom template I can use<?php wpmtst_field( 'my_custom_URL' ); ?>
to show the text of the link, however if I try to wrap this in code like<a href="<?php wpmtst_field( 'my_custom_URL' ); ?>">Link Text</a>
it doesn’t create the link. The href is just empty.
What am I doing wrong?
Viewing 3 replies - 1 through 3 (of 3 total)
Viewing 3 replies - 1 through 3 (of 3 total)
- The topic ‘Use URL field in custom template’ is closed to new replies.