I want to display the current page number in the site. I want it to be conditional though so that it doesn't show up on the home/front page. Using the code below, the page number is being displayed at all.
<?php
$pageNumber = (get_query_var('paged')) ? get_query_var('paged') : 1;
if(!is_front_page()) {
echo "<div class='page-count'><?php echo '– $pageNumber –'; ?></div>";
}
?>