• Resolved razclud

    (@razclud)


    <?php
    
    if ( is_page('home')) { 
    
     echo '<li>';
    
    		<h3></h3>
    		<iframe>;
    
     echo '</li>';
    
    } elseif ( is_page('2')) {	
    
     echo '<li>';
    
        	<div class="cloud">
    
     echo '</li>';
    
    } else { 
    
     echo '<li>';
    
        	<h3></h3>
    		<iframe>;
    
     echo '</li>';
    
    <?php } ?>

    I am trying to make this thing work in my sidebar and i keep getting parse error and have no idea whats wrong. I want to make some html appear in my sidebar on my pages, to modify it so that each time i access the page a different sidebar be generated.

    Does anyone care to help a novice?

    Thank you very much

Viewing 4 replies - 1 through 4 (of 4 total)
Viewing 4 replies - 1 through 4 (of 4 total)

The topic ‘How to use ELSEIF in the sidebar’ is closed to new replies.