alandbh
4/18/2017 - 4:04 PM

It gets the parents ID's // Pega os ID's das páginas mães

It gets the parents ID's // Pega os ID's das páginas mães

$ancestor = get_post_ancestors($post)[0];

if ($ancestor == 16349) { // se for filha de "os distritos"
    echo '<h2>Localização</h2>';
    include 'includes/mapa-local-atrativo.php';

}