• Can any one kindly explain this below code. how this work? ‘h1, : ‘div’; ?

    <?php $heading_tag = ( is_home() || is_front_page() ) ? ‘h1’ : ‘div’; ?>

Viewing 1 replies (of 1 total)
  • The variable $heading_tag is being set depending on the current page.

    If the page is the home page OR the static front page, set $heading_tag to ‘h1’, otherwise set it to ‘div’.

Viewing 1 replies (of 1 total)
  • The topic ‘new to wordpress’ is closed to new replies.