Why is this half-working?

I’m only getting the first “if” to work. The “elseif” statement seems to have no effect. Is my syntax correct ?

<?php if(is_url('http://mysite.ca/')){ $page_data = get_page(get_option('boldy_slider')); $content = $page_data->post_content; echo $page_data->post_content; }elseif(is_url('http://mysite.ca/en/')){ $page_id = 2272; $page_data = get_page( $page_id ); $content = $page_data->post_content; echo $page_data->post_content; }else{?>

…something else happens


… i swear i just answered this same question in the beginners section??

Sponsor our Newsletter | Privacy Policy | Terms of Service