ACF Field value in wordpress login message filter
the_field() echoes out the result. You want get_field() instead. However these won’t automatically default to reading fields from the home page. You’re going to have to give get_field the post ID of the home page to look up so it knows where to get the field from. Something like: function alltomhobby_login_message( $message ) { if … Read more