Right now, I have something like this:
<?php if ( ! is_front_page() ) : ?>
<?php if ( $count >= 1 ) : ?>
<?php if ( $count == 1 ) : ?>
<h2 class="dark-title"><?php _e( 'Top Reply (Latest)' ); ?></h2>
<?php else : ?>
<h2 class="dark-title"><?php _e( 'Top Replies (Latest)' ); ?></h2>
<?php endif; ?>
<?php endif; ?>
<?php endif; ?>
There are 3 nested if-statements I would like to know if this is a bad practice. If it is, how can I clean this code?
It is if the conditions are very simple and their are no else cases.
Also, opening useless
<?phpprocessing instructions and using the uncommonendifform instead of braces are definitely not encouraged. Instead, write: