Thread: Tech Quick PHP question
View Single Post
Old 01-11-2017, 02:52 PM  
Bladewire
StraightBro
 
Bladewire's Avatar
 
Industry Role:
Join Date: Aug 2003
Location: Monarch Beach, CA USA
Posts: 56,232
Quote:
Originally Posted by sarettah View Post
Hey,

You r welcome but I should have been able to do that without having you send me the file. lol. I ran into something very similar a while back on something I was working on but forgot about it until I was looking at the file.

For the record in case anyone searches on this at some point:

The problem was that the wrong function was being used.

the_field() echoes the value in the field to the page.

get_field() pulls in the value.

So the change was changing the_field() to get_field() and it all worked as expected.

https://www.advancedcustomfields.com...ces/the_field/

.
You are awesome!
__________________


Skype: CallTomNow

Bladewire is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote