How do i get html inside php but only have it on certain wordpress pages. I want it to look like this <?php if ( function_exists( 'get_smooth_slider' ) && !is_page(array(977,1773,514,177,190,231,321,29,1032,1820,2) )) { get_smooth_slider(); } ?> Code (markup): With the !is_page code. I don't know what to put after the <?php if. Thank you for any help
<?php if ( function_exists( 'get_smooth_slider' ) && !is_page(array(977,1773,514,177,190,231,321,29,1032,1820,2) )) { ?> <strong>HTML CODE</strong> <?php get_smooth_slider(); } ?> PHP:
Thanks for the response. I'll specify a little better. How do I make it without the slider so like this: <?php if ( !is_page(array(977,1773,514,177,190,231,321,29,1032,1820,2) )) { html code } ?> Code (markup):
<?php if ( !is_page(array(977,1773,514,177,190,231,321,29,1032,1820,2) )) { ?> HTML <?php } ?> PHP: or <?php if ( !is_page(array(977,1773,514,177,190,231,321,29,1032,1820,2) )): ?> HTML <?php endif; ?> PHP:
If you want to insert HTML inbetween PHP tags use: <?php if ( !is_page(array(977,1773,514,177,190,231,321,29,1032,1820,2) )) { ?> -- HTML_CODE -- <?php } ?> PHP: