Take the 2-minute tour ×
WordPress Development Stack Exchange is a question and answer site for WordPress developers and administrators. It's 100% free, no registration required.

hey guys, is there a way to check if i'm currently not on the frontpage of my blog? I know there are conditional tags like is_home(). However that won't work if I'm on myblog.com/page/2/

I have a pagination on my frontpage that let's users jump to the next page. If I'm on the second page i want to show a "Back Home" link.

any idea how I could achieve that?

thank you.

share|improve this question
    
Since is_home() is a valid tag, can't you just ask if it evaluates to false? When it's false, put in the link to home. –  dnagirl Mar 2 '11 at 20:08

1 Answer 1

up vote 2 down vote accepted

Use the conditional Tag is_paged() for this purpose

Look at: Codex WordPress

share|improve this answer

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.