Support » Fixing WordPress » Conditional blog tags not working

  • 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();
    }

    ?>

Viewing 1 replies (of 1 total)
  • 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();
    }

    ?>

Viewing 1 replies (of 1 total)
  • The topic ‘Conditional blog tags not working’ is closed to new replies.