Error thrown

Call to undefined function wp_table_of_contents()