jeudi 22 septembre 2016

Wordpress: If is_page() and not is_front_page()

Is there a way, in WordPress, to test if is a page and is not the front page. When I use the following PHP if logic it fails to give me the output I hoped.

<?php if( !is_front_page() && is_page() ) : ?>
     <!-- THEN OUTPUT THIS HTML -->
<?php endif; ?>

Aucun commentaire:

Enregistrer un commentaire