• Here is my code:

    <?php
    	if( is_front_page() ):
    		echo '
    				<div class="slide-out-div">
    				<a class="handle" href="#">Map Legend</a>
    				<?php GeoMashup::category_legend() ?>
    				test
    				</div>
    				</div>';
    	else:
    		echo '.';
    	endif;
    ?>

    This code works great, no problem at all, except, this:
    <?php GeoMashup::category_legend() ?>

    It doesn’t show up. If I take out the if statement, it does, but then it shows on all my other pages…. what am I missing. I only know enough php code to find my way out of a paper bag.

Viewing 8 replies - 1 through 8 (of 8 total)
Viewing 8 replies - 1 through 8 (of 8 total)
  • The topic ‘if _is_frontpage help’ is closed to new replies.