Only check if first category is Urlaub

This commit is contained in:
Markus Ankenbrand 2016-09-08 17:00:04 +02:00
parent de71c06031
commit 6ca12c452a
2 changed files with 1 additions and 6 deletions

View file

@ -12,11 +12,6 @@ function td_theme_styles() {
);
}
// map to name function
function map_to_name($element) {
return $element['name'];
}
// Add google API key
function my_acf_google_map_api( $api ){
$api['key'] = 'AIzaSyDHNT102YHu-TP50F78bPyvf5ia6K6cjU8';

View file

@ -48,7 +48,7 @@
<div class="clear"></div>
<?php if ( in_array('Urlaub', array_map('map_to_name', get_the_category())) ) : ?>
<?php if ( get_the_category[0]['name'] == 'Urlaub' ) : ?>
<table>
<tr>
<th>Land</th>