• Hello, when i want to print the taxonomy terms i get this error:

    Warning: array_map(): Argument #2 should be an array in C:\xampp\htdocs\watchmovies\wp-includes\category-template.php on line 1158

    I tried to change like this. The error doen’t appear again but neither do taxonomies terms.

    I change:
    $terms = array_map( 'get_term', $terms );
    with

    if ( ! is_wp_error( $terms ) ) {
    		$terms = array_map( 'get_term', $terms );
    	}

    Any ideea?

Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
  • The topic ‘Warning: array_map(): Argument #2 should be an array in C:\xampp\htdocs\watchmov’ is closed to new replies.