Sehr geehrte Community Mitglieder,
ich bekomme auf der Website auf den Produkten wie z.B. hier http://kondom-guru.net/produkt/billy-…sitive-kondome/ die Fehlermeldung:
Warning: array_map(): Argument #2 should be an array in /www/htdocs/w013bf94/kondom-guru.net/wp-includes/category-template.php on line 1158
So sieht meine Line von 1144 - 1158:function get_the_terms( $post, $taxonomy ) {
if ( ! $post = get_post( $post ) )
return false;
$terms = get_object_term_cache( $post->ID, $taxonomy );
if ( false === $terms ) {
$terms = wp_get_object_terms( $post->ID, $taxonomy );
$to_cache = array();
foreach ( $terms as $key => $term ) {
$to_cache[ $key ] = $term->data;
}
wp_cache_add( $post->ID, $to_cache, $taxonomy . '_relationships' );
}
$terms = array_map( 'get_term', $terms );
Wäre sehr dankbar, wenn mir jemand helfen könnte.
Gruß