Only check if first category is Urlaub
This commit is contained in:
parent
de71c06031
commit
6ca12c452a
2 changed files with 1 additions and 6 deletions
|
|
@ -12,11 +12,6 @@ function td_theme_styles() {
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
// map to name function
|
|
||||||
function map_to_name($element) {
|
|
||||||
return $element['name'];
|
|
||||||
}
|
|
||||||
|
|
||||||
// Add google API key
|
// Add google API key
|
||||||
function my_acf_google_map_api( $api ){
|
function my_acf_google_map_api( $api ){
|
||||||
$api['key'] = 'AIzaSyDHNT102YHu-TP50F78bPyvf5ia6K6cjU8';
|
$api['key'] = 'AIzaSyDHNT102YHu-TP50F78bPyvf5ia6K6cjU8';
|
||||||
|
|
|
||||||
|
|
@ -48,7 +48,7 @@
|
||||||
|
|
||||||
<div class="clear"></div>
|
<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>
|
<table>
|
||||||
<tr>
|
<tr>
|
||||||
<th>Land</th>
|
<th>Land</th>
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue