I need to say if the number of published posts is only one, get_footer();... but.. if the number of published posts is greater than one, get_footer('single')..
This is my current code that doesn't seem to work:
<?php
$count_posts = wp_count_posts();
if($count_posts = 1){
get_footer();
} else if($count_posts > 1) {
get_footer('single');
}
?>