copywrite2012 on "How to output this sitemap link only on the homepage footer."
May 9, 2010 by David Olsen
Why doesn’t this work for me? I am trying to output this sitemap link only on the homepage.
On the footer.php file I have
PHP Code:
[HTML]
<?php get_footer(); ?>
[/HTML]
[HTML]
I added this code in the WP admin html footer that I found on the net
<?php if ( is_home() AND !is_paged() ) { ?>
Sitemap</sitemap>
<?php } ?>
that didn’t work so I tried this
<?php if ( is_home() ) { ?>
Sitemap</sitemap>
<?php } ?>
[/HTML]
but the link is shown across all pages.
How can I get this to work? Thanks





Comments
Facebook comments:
Feel free to leave a comment...
and oh, if you want a pic to show with your comment, go get a gravatar!