Questions tagged [paginate-links]
The paginate-links tag has no summary.
125 questions
0 votes
1 answer
83 views
Custom post type removing /page/2/ from URL when trying to access it
I made a shortcode to list form entry data that paginates using paginate_links(). I added this shortcode to a regular page and it works fine. If I click on page 2, it refreshes the page and adds the /...
0 votes
1 answer
137 views
Pagination URL not good
the theme I made didn't have a search functionality. I started receiving in Search Console thousands of soft 404 for similar pages: https://www.example.com/?s={search_term_string}page/3page/2page/...
0 votes
0 answers
101 views
Multiple WP_Query with pagination shows Page/2 content on the remaining pages
I have gone through many articles and scrolled through almost all the questions here but couldn't resolve my issue. So I'll explain my scenario in detail My index.php looks like this which segregates ...
0 votes
0 answers
22 views
Pagination Links for Custom post type returns 404 [duplicate]
first of all, I am new to WP development, and PHP. I am developing a template that has several custom post types. the problem is when I add pagination to my custom post type, all pagination links ...
0 votes
1 answer
65 views
Paginate_Links page 2 doesn't work
I have a custom query that can a list that can be up to around 20 items, so it needs pagination. It is displaying the correct amount of pages for how many items, but when clicking it it refreshes and ...
0 votes
0 answers
230 views
Pagination only showed when no category is set in wp_query
tldr: On my production site only, when I set category_name to any category my pagination does not show up. Once I remove category_name from my wp_query the pagination shows up (for all posts on my ...
0 votes
0 answers
182 views
Pagination links not working for custom taxonomy
I have a Custom Post Type (project) and a Custom Taxonomy (project_category). I have created a Page (Projects), which uses a custom template, in which I run a WP_Query to fetch projects and display ...
0 votes
0 answers
169 views
Help to modify wp_link_pages()
My site has the Newspaper theme by tagDiv, which installs two necessary plugins to make things work better. These plugins are Composer and Standard Pack. I'm trying to modify the default wp_link_pages(...
0 votes
1 answer
97 views
Archive page for Wordpress Custom Post Type doesn't show pagination from paginate_links()
I have a custom post type with courses-events as the slug. In functions.php, I have: add_action( 'pre_get_posts', 'custom_archive_items' ); function custom_archive_items( $query ) { if ($query->...
1 vote
0 answers
127 views
Last page in pagination does not match max_num_pages - the overall post count is less according to pagination
I'm using paginate_links() to display my posts pagination like this: $paged = get_query_var('paged'); $current_page = max(1, $paged); $custom_query = array( 'post_status' => 'publish', '...
0 votes
1 answer
1k views
search with pagination not working as expected
Why is this url pattern taking me to a 404 page where i saw in some other sites this same pattern works fine with search and paginate please help me i am new to wordpress and don't know why this is ...
0 votes
1 answer
404 views
Pagination contents not changing in Front page WordPress
This question has asked many time before and none has answers my question. I went through most of the answers before post this. I have a pagination query in home page. Pagination is showing and I can ...
1 vote
1 answer
1k views
Add css class to Pagination?
I've been using this code: $current_page = get_query_var('paged'); $current_page = max( 1, $current_page ); $per_page = 12; $offset_start = 1; $offset = ( $current_page - 1 ) * $per_page + $...
0 votes
0 answers
106 views
How to add pagination in Terms
Hello on my website I have created a page where it will show all of the Woo Commerce tags in the store in list format. The problem here is that I am unable to paginate them. I have tried ...
0 votes
2 answers
421 views
Pagination not working - FrontPage
I'm trying to add pagination through function.php. No Output! What I'm missing? function simpleblog() { $query = 'posts_per_page=6'; $queryObject = new WP_Query($query); // The Loop... ...