• chaseman

    (@chaseman)


    What is the correct WordPress syntax when using elseif?

    if ():
    
    	while():
    
    	endwhile;
    
    endif; elseif():
    
    	while():
    
    	endwhile;
    
    endif;

    Is this the one?

Viewing 1 replies (of 1 total)
  • Michael

    (@alchymyth)

    no endif; in the middle;

    if ():
    
    	while():
    
    	endwhile;
    
    elseif():
    
    	while():
    
    	endwhile;
    
    endif;
Viewing 1 replies (of 1 total)

The topic ‘Proper Syntax for Elseif?’ is closed to new replies.