Hi,
I am having some trouble implementing an else statement. Basically the code tells wordpress to display 3 slideshows on the homepage, and if not homepage it should display a single slideshow.
I am using hybrid theme framework.
When it parses this it comes back with a "Parse error: syntax error, unexpected T_ELSE". Thanks in advance for any help given, it will be much appreciated!
/* Homepage Slideshow */
add_action( 'hybrid_header', 'my_a_slideshow', 9 );
function my_a_slideshow() {
if ( !is_front_page() ) return;
?>
<div id="aslideshow-1">
<img src="wp-content/uploads/main1.jpg" alt="Downtown Whitehorse Hotel"/>
<img src="wp-content/uploads/home2.jpg" alt="Comfortable hotel rooms"/>
<img src="wp-content/uploads/home3.jpg" alt="Deluxe room with 2 double beds located on Main Street, Whitehorse"/>
<img src="wp-content/uploads/home4.jpg" alt="Boutique Hotel located right on Main Street, Whitehorse - Yukon Territory"/>
</div>
<div id="aslideshow-2">
<img src="wp-content/uploads/topright1.jpg" alt="Exterior photo of the hotel"/>
<img src="wp-content/uploads/topright2.jpg" alt="The Cellar, fine dining restaurant"/>
<img src="wp-content/uploads/topright3.jpg" alt="Lobby photo"/>
</div>
<div id="aslideshow-3">
<img src="wp-content/uploads/bottomright1.jpg" alt="Board room meeting space for Yukon meetings"/>
<img src="wp-content/uploads/bottomright2.jpg" alt="Spacious suites"/>
<img src="wp-content/uploads/bottomright3.jpg" alt="Finely appointed bathrooms"/>
</div>
<?php
else
echo do_shortcode( '[slideshow id=4 w=960 h=300]' );
}