This website uses cookies to personalize your experience. By using this website you agree to our cookie policy.

Reply To: A couple questions

#10450
Ernest MarcinkoErnest Marcinko
Keymaster

Oh I see why now, there is one missing “&” sign in the foreach loop code, dang it!

Additionally, based on your screenshot I’ve constructed a possible solution, including getting the fields and checking if they are empty as well. The “the_field” function would not work in this case, as this is not a classic wordpress posts loop, so each field needs to be parsed separately:

I actually haven’t tested this code, but I’m almost sure it will place the HTML code into the results.