How do I Href with ACF?
-
Hi guys,
I have 1 field which is a text field.
Field: Url – Text
Say the value of Url = https://www.google.comSo when I Href in a while like so:
<a href="<?php the_field('url'); ?>"></a></br></p>
When you click on a link you get a 404 and this happens: https://www.mywordpresssite.com/Url(www.google.com)
So basically I want the href value as shown value on my site, but automatically because there’s about 300 other pages on which this has to happen. So every page has different urls.
I can’t seem to figure it out.
Thanks in advance!
https://www.ads-software.com/plugins/advanced-custom-fields/
Viewing 3 replies - 1 through 3 (of 3 total)
Viewing 3 replies - 1 through 3 (of 3 total)
- The topic ‘How do I Href with ACF?’ is closed to new replies.