wordpress中的条件标签

Sorry for the trivial question but I'm not very skilled in php... I need to display a slideshow on every page of my wordpress site except in one (sponsor). I tried with this code but does not work.

<? php if (! is_sponsor ()) {do_action ('slideshow_deploy', '3484'); }?>

Where did I go wrong?

The normal code to display the slideshow is:

<?php do_action('slideshow_deploy', '3484'); ?>

Thanks in advance!

If you want to disable the slider on the page with slug "sponsor", try with the following code:

if( !is_page('sponsor') ) {
    do_action('slideshow_deploy', '3484');
}

If you want to disable the slider on posts from post type "sponsor", try with the following code:

if( !( is_single() && get_post_type() == 'sponsor' ) ) {
    do_action('slideshow_deploy', '3484');
}

There is no such thing as is_sponsor

to not display it for that single page

create a new page template and completely remove

<?php do_action('slideshow_deploy', '3484'); ?>

here is the naming structure

http://codex.wordpress.org/Template_Hierarchy