• Resolved Agent D

    (@agent-d)


    Hi,

    This might be kinda dummy question but I don’t know how…

    I want to show an intro text in the first page of the archive, then from the second page I don’t want to show it. I know how to use “include” but how do I show nothing when the condition is “else”? I want to know what to write after “else”

    <?php if ( $paged < 2 ) { ?>
    <?php include(‘intro.php’);?>
    <?php } else { ?>
    xxxxxxx
    <?php } ?>

    Please let me know. Thanks!!

    AD

Viewing 4 replies - 1 through 4 (of 4 total)
Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘When “else” show nothing?’ is closed to new replies.