WordPress Development Stack Exchange is a question and answer site for WordPress developers and administrators. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

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
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


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.