WordPress.org

Ready to get started?Download WordPress

Forums

Conditional blog tags not working (2 posts)

  1. jonathanbrun
    Member
    Posted 4 years ago #

    Hi,

    I want one plugin to be displayed on all pages and on the blog except for one page. The following is my code. It works fine except on the homepage which is also the blog, on the blog it does not show the plugin. Please help.

    <?php
    if (is_page('12')){ ?>

    <div id="ir_section_1_container"><div id="ir_section_1"> </div></div>
    <!--<img src="<?php bloginfo('template_directory'); ?>/images/rd/rotate.php" alt="A Random Image" />-->
    <?
    }

    else (is_page() || is_front_page()){
    show_media_header();
    }

    ?>

  2. jonathanbrun
    Member
    Posted 4 years ago #

    Sorry, code is now:

    <?php
    if (is_page('12')){ ?>

    <div id="ir_section_1_container"><div id="ir_section_1"> </div></div>
    <?
    }

    else {
    show_media_header();
    }

    ?>

Topic Closed

This topic has been closed to new replies.

About this Topic