Testing for pages (not Pages)
-
I know that the ‘is_page’ tag can be used to test for Pages like the “About” page.
I’m looking for a way to test for the pages that appear as part of a site’s history.
Specifically I’d like something to appear on the index page but not on the past post pages that appear after it.
For example:
I’d like the index page (mysite.com) to display “This is the index” but I’d like the “previous posts” pages (mysite.com/page/2) to not display it.Any thoughts?
Viewing 3 replies - 1 through 3 (of 3 total)
Viewing 3 replies - 1 through 3 (of 3 total)
- The topic ‘Testing for pages (not Pages)’ is closed to new replies.