Ok I think I need an “if” PHP statement. I am a real beginner with PHP. I want this chunk of code from my comments.php to parse only if there is at least one comment:
<h3 class="commentstop"><?php comments_number(__('No Comments'), __('1 Comment'), __('% Comments')); ?>
<?php if ( comments_open() ) : ?>
<a id="leavecomment" href="#postcomment" title="<?php _e("Leave a comment"); ?>">Leave A Comment</a>
<?php endif; ?></h3>
So the PHP I need in English:
[ IF THERE ARE NO COMMENTS SKIP THIS CODE] [ IF THERE IS AT LEAST 1 COMMENT PARSE IT NORMALLY]
It should be relatively simple I just don’t know any PHP.
Thanks for any help you can give 🙂
- The topic ‘PHP Help Needed Please’ is closed to new replies.