Hey John,
I have found the issue in your code:
if (get_field('data_of_birth', false, false)) {
You put “data” instead of “date” 🙂
Now is working perfectly. Thank you very much mate!! 😀
Hey John,
Here what appears in both posts (empty and not)
bool(false)
Weird 🙂
Thank you John 🙂
I tried your new code and the error disappeared but…
Not only the empty field appears hiding but also the ones with data.
What could be? How to hide only the empty fields?
P.S. Sorry mate, if this is giving you too much work.
Hey John,
Thank you again for your reply.
Is too much to ask you if you can help me find the issue that you said? 🙂
My code: http://paste2.org/paG6xhVL
Note: You code in lines 38 to 50.
Hey John,
Thank you very much for trying to help me.
But when I replace the code, I get the following error:
Parse error: syntax error, unexpected ‘endwhile’ (T_ENDWHILE) in /home/myusername/public_html/wp-content/themes/customtheme/single-model.php on line 62
Any idea how to fix this? 🙂