Quantcast
Channel: if else in a Wordpress function - Stack Overflow
Browsing latest articles
Browse All 3 View Live

Answer by M. Haseeb Akhtar for if else in a Wordpress function

The problem is in this condition:else (is_page( array( 205, 399, 401, 403, 405, 407 ) ) ) { ?>Either change else to elseif or remove the condition after else

View Article



Answer by Haddock-san for if else in a Wordpress function

Remove the endif; on the bottom line.If you want to use the endif; you have to use the following syntax:<?php if ( condition ) : ?> { html goes here }<?php elseif ( condition ): ?> { html...

View Article

if else in a Wordpress function

I have the following code:function wpb_hook_javascript() { if (is_page( array( 244, 174, 697, 702, 699, 708, 713 ) ) ) { ?><noscript><iframe src="FORM_ONE" width="100%" height="550"...

View Article
Browsing latest articles
Browse All 3 View Live




Latest Images