post_count
property of query object will hold amount of posts queried.
Note that this is not often used and it is more common to display such elements by conditional logic (is_singular()
, is_archive()
, etc) or on template level.
PS query_posts()
is evil and should not be used
Related Posts:
- How to fix pagination for custom loops?
- Pagination not working on home page
- WordPress category & taxonomy loop with pagination
- How do I prevent one of two multiple loops from repeating on a second page?
- Two custom loops, pagination, offset
- Previous and Next Post link doesn’t work
- Pagination adding extra posts only on page 2
- multiple loops with pagination on the same page
- Enable infinite scroll on single.php [closed]
- How to paginate this custom loop? [duplicate]
- Make a custom loop inside single.php with pagination
- Why do I get `Call to a member function have_posts() on a non-object `? [closed]
- Pagination gives extra page with no results
- Get Pagination (WP-PageNavi) not to work
- How to get an array of years from all of the search results, and use it to filter by year the paginated loop?
- Complex query and posts pagination
- Why only one post (and no pagination) on this variation of the loop?
- Calling & display certain product category loop and pagination on the homepage
- Make blog page show 10 on first page, 9 on every other page
- Duplicate posts in paginated results
- Pagination for multiple loops
- How to fix pagination for custom loops?
- How can I paginate this?
- Genesis multiple category custom loop 404s after first page
- How to fix pagination for custom loops?
- Pagination – works on local but not live dev!
- How do I paginate a get_posts() request inside another page loop (Paginating childpages)
- Pagination on Single Post
- How to get my loop to paginate?
- Distribute Gallery Images Every nth in Loop
- In Custom page – next_posts_link Not working while previous_posts_link is working
- How to exclude or filter password protected posts when using next_post_link() previous_post_link
- How to append a query string to pagination?
- How do I get my loop.php to properly paginate?
- First archive page with a few posts
- Pagination broken after using 2 loops to show content
- Pagination on custom post type on front-page.php
- I have broke my pagination, same posts on all pages (index.php)
- Frontpage pagination by week
- How can this multiple loop have pagination as described?
- Display more than 10 posts on author.php file
- static page with multiple loops breaks post pagination
- Pagination for two loops
- Skip 5 latest post while paging?
- Why does my WP_Query pagination on a custom page.php only loads the homepage?
- Pagination contents not changing in Front page WordPress
- How to add pagination in Terms
- How to insert content before pagination in loop?
- Pagination on a underscore custom theme
- WordPress multiple loops with default pagination
- How to fix pagination for custom loops?
- Style first 3 posts differently and use a 2nd loop to get rest of posts / offset and pagination broken
- Custom loop not working in singular.php, working in other pages
- Alternative layout the loop
- How to fix pagination for custom loops?
- Adding pagination to WP_Query [duplicate]
- How to fix pagination for custom loops?
- How to fix pagination for custom loops?
- Displaying posts limit: can’t get pagination to display [duplicate]
- Paged homepage – requirements?
- Home page loop with pagination problem
- WooCommerce custom loop pagination on front page
- posts_nav_link() not working on index.php
- Custom Page Template and Category Exclusion
- repeating posts on 2nd page to posts
- Limitless amount of posts in custom archive page
- Same posts within a paginated page
- Multiple loop with pagination in same page
- Insert multiple custom components after x-number of posts
- Pagination only showed when no category is set in wp_query
- Using the Loop to show all levels of subpages under a parent page? Halfway there
- Getting paginate_links() ‘end_size’ to display none
- Cleanest Way to Select Every Second Element in a Loop?
- Why do themes have `while( have_posts() )` in templates like single.php?
- Broken pagination
- Too many nested wp_query loops in this hypothetical query?
- get understrap pagination to work with custom query
- WordPress Loop – Style rows of posts differently
- Paginated HTML Sitemap
- paging in WP_Query on static page
- Only display videos and images in the_content() within loop
- Query last updated posts (posts updated in the last 24 hours)
- Publish Categories for a particular Author on a given Post
- How to hook into container
- Get paged outside of loop?
- Show scheduled posts in loop (but don’t link to them)?
- How to get a count of all posts in foreach loop and split into fourths
- How to loop through yoast primary categories? [closed]
- WordPress get post thumbnail url
- Can’t get the previous and next posts permalink
- Modifying a Loop to Show More
- How can I get the last post while on the first post for pagination? As if it were infinite
- Show posts by tags excluding current post
- Adding options to loop
- Featured posts and the loop
- Change the way wordpress outputs images or image galleries
- How can I access ‘key’ and ‘value’ from an array in a for loop?
- How to get current page id and compare it to looped pages inside the same page?
- WordPress posts loop pagination – first page return 125 posts instead of 10 and the rest return 10
- Tags outside the loop