[wp-hackers] Pagination: How to display sidebar content on front page only?
RePost
repost_08 at yahoo.com
Tue Jan 12 22:36:48 UTC 2010
Lari Elovainio wrote:
> On 12. 1. 2010, at 10.50, wp-hackers-request at lists.automattic.com wrote:
>
> I've certainly looked at the tags is_home, is_page and is_front_page. I
> just don't know what values could possibly create the outcome I'm
> looking for.
>
> For instance, does any value even exist that would address
> mysite.com/page/2, which the Codex refers to only once, as a "generic page"?
>
> I don't know. I'm hoping someone with a deeper knowledge of WordPress
> would have that insight.
>
>
> Eric already posted this:
> http://codex.wordpress.org/Conditional_Tags#A_Paged_Page
>
> Lari
Thanks, all. I used your suggestions, and this is what worked for me:
<?php
if ( is_front_page() && !is_paged() )
include("sidebar-index.php");
else
include("sidebar.php");
?>
More information about the wp-hackers
mailing list