Tell me when are you supposed to use endif to end the conditional statement?
Answer Posted / Sanjay Kumar Rawat
The endif function should be used to close any if or if-else statement in WordPress templates, as shown in the example below:nn```phpnif ( have_posts() ) :n while ( have_posts() ) : the_post();n // Your code heren endwhile; nendif;n```
| Is This Answer Correct ? | 0 Yes | 0 No |
Post New Answer View All Answers