<?php wp_reset_query();
if (!is_page('Shop')) {
echo do_shortcode("[lbg_kenburnsslider settings_id='2']");
}
?>
Do more with
I am trying to display a banner on the main shop page.
if (!is_page('Shop'))
if (!is_page('shop')) {
echo do_shortcode("[lbg_kenburnsslider settings_id='2']");
}
if (!is_page(20)) {
echo do_shortcode("[lbg_kenburnsslider settings_id='2']");
}
so i need to remove the ! before is_page, otherwise it is not?
Also does this page have an ID if it is a generated page, basically an archive page?
Premium Content
You need an Expert Office subscription to comment.Start Free Trial