need special actions if is home.php
-
I want recent posts to show if the template being used is home.php. This code is not working.
‘<?php if ( get_query_template(‘home.php’) ) : ?>
<?php echo ‘<li id=”linkcat-1″>Latest Articles- ‘; ?>
<?php get_archives(‘postbypost’, 5); ?>
<?php echo ‘‘; ?>
<?php endif; ?>’
What would be the correct way to do this?
Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
- The topic ‘need special actions if is home.php’ is closed to new replies.