WordPress - If front page statement

<?php if(is_front_page() ) { ?> <?php } else { ?> <?php } ?>
A simple if statement which allows you to create a front page template within the WordPress page.php template without needing creating another template file for the front page.

Be the first to comment

You can use [html][/html], [css][/css], [php][/php] and more to embed the code. Urls are automatically hyperlinked. Line breaks and paragraphs are automatically generated.