Pour éviter d’afficher un quelconque contenu autour du contenu d’un champ personnalisé géré par l’extension ACF, il faut tester pour voir si le champ est vide ou pas. Et on affiche en fonction.
Dans cet exemple, le champ est champ_nom
.
Code
Ma valeur de champ :
If you have found a spelling error, please, notify us by selecting that text and pressing Ctrl+Enter.
Spelling error report
The following text will be sent to our editors: