WordPress.org

Forums

Conditional tag for single post template (2 posts)

  1. jackbomb
    Member
    Posted 3 years ago #

    Hi

    I've created several single post templates in my theme. So far so good.

    I'm now modifying the HTML part of a slider plugin, as I want it to appear differently on each template.

    So I'm hoping there is a conditional statement to define which template does what.

    For instance:

    <?php if (is_single.php) { ?>
    
    **Do Stuff**
    
    <?php } else { ?>
    
    **Do different stuff**
    
    <?php } ?>

    Thanks in advance for any pointers.

  2. Michael
    Forum Moderator
    Posted 3 years ago #

Topic Closed

This topic has been closed to new replies.

About this Topic