I can’t seem to understand is_paged()
but I have used is_page()
before. If possible please provide an sample page. 🙂
Leave a Reply
You must be logged in to post a comment.
I can’t seem to understand is_paged()
but I have used is_page()
before. If possible please provide an sample page. 🙂
You must be logged in to post a comment.
Have you had a look at the function reference?
is_paged()
That means you get to know whether the current page is divided into several “subpages”.
is_page()
The $paged global variable contains the page number of a listing of posts.
The $page global variable contains the page number of a single post that is paged.
is_paged():
For example you have a blog. You have total 170 posts in your blog.
When someone visits your blog’s main page(it is also called index
page), he/she sees 12 posts like this site ExcelDemy.com. To
see other posts in your blog, people will click “older posts” or page number
whatever you have set in the bottom portion of your index page. After
one click on “Older Posts”, you will be transferred to second page of
the blog, see this link: and observe the URL Second Page of the
blog.
When you are in index page exceldemy.com, is_paged() function returns
“False” as this page is not paged; When you are in second page 2,
is_paged() function returns “True” as you’re in a paged page.