Skip to main content

Questions tagged [paginate-links]

The tag has no usage guidance.

0 votes
0 answers
6 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 /...
Aristocles's user avatar
0 votes
1 answer
57 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/...
Pikk's user avatar
  • 279
0 votes
0 answers
67 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 ...
user3362364's user avatar
0 votes
0 answers
51 views

Woocommerce paginate link generates #038 instead of ? - seems connected to caching

If I don't reset my cache before using the shop page, #038 appears in the URLs generated in the pagination links at the bottom of the page, and the pagination doesn't work (stays on the same first ...
Resh's user avatar
  • 1
0 votes
0 answers
20 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 ...
Ehsan Aliverdi's user avatar
0 votes
1 answer
24 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 ...
Erinn Szarek's user avatar
0 votes
0 answers
206 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 ...
james's user avatar
  • 135
0 votes
0 answers
122 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 ...
superfive33's user avatar
0 votes
0 answers
151 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(...
Emmanuel Lima's user avatar
0 votes
1 answer
71 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->...
arrr_matey's user avatar
1 vote
0 answers
107 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', '...
Julian's user avatar
  • 11
0 votes
1 answer
513 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 ...
Amir Rahman's user avatar
0 votes
1 answer
341 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 ...
user2584538's user avatar
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 + $...
Rebecca's user avatar
  • 13
0 votes
0 answers
84 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 ...
Ashish Jat's user avatar

15 30 50 per page
1
2 3 4 5
9