if is home if is page if is single else if


/ Published in: PHP
Save to your folder(s)

if is home if is page if is single else if


Copy this code and paste it in your HTML
  1. <?php if (is_home()) { ?>
  2. <?php } elseif (is_single()) { ?>
  3.  
  4.  
  5. <?php } ?>

Report this snippet


Comments

RSS Icon Subscribe to comments

You need to login to post a comment.