[wp-hackers] Pagination: How to display sidebar content on front page only?

RePost repost_08 at yahoo.com
Tue Jan 12 08:50:05 UTC 2010

Austin Matzko wrote:
> On Mon, Jan 11, 2010 at 9:07 PM, RePost <repost_08 at yahoo.com> wrote:
>> I need to place sidebar content on my blog that appears on the home page
>> only.
>> This means the content should display only at mysite.com and not at
>> mysite.com/page/2/
>> However, both the home page and inside pages use the same template,
>> index.php, which means they both use the same sidebar.
>> Is there a conditional script that would allow me to use a different sidebar
>> on inside pages?
> You can check the returned value of is_home() (or possibly
> is_front_page() depending on your situation). See
> <http://codex.wordpress.org/Conditional_Tags>

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.

More information about the wp-hackers mailing list