jeudi 24 juin 2021

get_meta_tags - if else

I have:

$tags = get_meta_tags("https://$_SERVER[HTTP_HOST]$_SERVER[REQUEST_URI]");
<div>
    <h1><?php echo $tags['filter-title'] ?></h1>
<div>

How I can add if else, If the meta tag 'filter-title' doesn't exist and I only want to display the text "Filtering" instead?

Aucun commentaire:

Enregistrer un commentaire