Object of class WP_Post could not be converted to string while trying to console.log wp_get_nav_menu_items October 21, 2022 by Tarik Billa I’ve figured that using print_r will output array via console.log