You may not need to pass in the_post()
. Calling the_post()
sets up the global $post object, and get_field()
may also be accessing the global $post object
You may not need to pass in the_post()
. Calling the_post()
sets up the global $post object, and get_field()
may also be accessing the global $post object