Adding a tag in a function
-
I should add a tag in the following function:
if (has_tag('wi-fi', $post)) {
$wi_fi_esc = esc_html__(get_the_author_meta( 'wi_fi_esc', $post->post_author ), 'sacconicase');
if(!empty($wi_fi_esc)){
$wi_fi_esc = '<div class="wi_fi_esc">'. $wi_fi_esc .'</div>';
}
} else {
// don't have 'wi-fi' tag
$wi_fi_esc = '';
}I need not only ‘wi-fi’ but also ‘light-wi-fi-navigazione-social-controllo-posta-no-streaming-o-download’, I just put a comma and enter the other tag ? they dont have to be checked at the same time, it would be a non-sense, but the function can ignore it because I dont do it myself
The page I need help with: [log in to see the link]
Viewing 2 replies - 1 through 2 (of 2 total)
Viewing 2 replies - 1 through 2 (of 2 total)
The topic ‘Adding a tag in a function’ is closed to new replies.