Skip to main content

All Questions

Tagged with
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
1 answer
51 views

Search pagination rewrite to fix 404

I'm wondering if anyone can help me out here? Basically, I think I need to use add_rewrite_rule() to get pagination working in my search results, as I've gone beyond the default query due to a bunch ...
Jase Warner's user avatar
0 votes
1 answer
57 views

Search results stuck on page 1

The problem statement For some reason when the user does a search the results page (search.php) only show the first page results. The pagination (next and previous links) also believes its on page 1. ...
Mike's user avatar
  • 111
1 vote
0 answers
497 views

wp_query 's', search filter with pagination is not working

I made this shortcode for a page of posts. I want to set a search function. I filled for example: "web design". The search-result will set in the var "$catSearched". Then it works ...
Jungolmok's user avatar
0 votes
0 answers
55 views

Search results with pagination not working

I've got a news page with a search bar functionality. On this page I want a user to be able to enter a term and the contents of that page will be updated depending on what the user has entered. I don'...
vllnv's user avatar
  • 1
0 votes
0 answers
205 views

Pagination repeating posts on search results

i have a problem with my wordpress search result pagination. Basically it's working as intended until i hit page 2, it then repeats the results of page one. Here is my search.php, please excuse the ...
Jason's user avatar
  • 13
1 vote
1 answer
125 views

How to get an array of years from all of the search results, and use it to filter by year the paginated loop?

I hope this is not too dumb: even though I'm learning at an acceptable rate, my WP knowledge still has some important gaps. What do I have: My search.php template gets its results from the normal ...
Marks's user avatar
  • 31
0 votes
1 answer
454 views

Pagination Error : Duplicate argument being outputted

I've been writing a custom search.php loop for some time now and I'm running into a weird problem. My php argument is outputting some unexpected results by repeating the template file. Currently I ...
Lewis's user avatar
  • 368
0 votes
1 answer
734 views

Remove pagination if search returns empty

I made a fix that when the searchbar is empty, it returns 'No results', instead of all posts, but the pagination still shows up. Does anyone know a fix for that? My code search.php: <div class="...
Jurre N's user avatar
0 votes
0 answers
63 views

Search, pagination, the last pages leads to 404 page

sorry Im new to Wordpress. I have a search list and able to browse among hits: "http://example.com/search/SEARCHEDKEYWORD/page/11/" I have 15 pages, and the last 3 pages leads to 404 page. So, http://...
John Smith's user avatar
0 votes
1 answer
29 views

Wordpress search page pagination displaying but not functional

I have a search page with pagination, that is displaying the correct number of pages, however it the links seem to be forwarding to the 404 page. $paged = ( get_query_var( 'paged' ) ) ? absint( ...
Carl Johnston's user avatar
0 votes
1 answer
79 views

Pagination adds search query (again)

I have created a custom search form. That works perfectly. I have added pagination. That also works (almost) perfectly. Now if I have the following search query/url http://domain.com/?s=&ssd=1&...
Beee's user avatar
  • 563
1 vote
0 answers
359 views

WordPress pagination not working on template search.php

I have a small issue, pagination doesn't work on search.php. I query the results with wp_Query using the code below, I get to see the page link but when I press them I get 404 error. I was told that ...
DavSev's user avatar
  • 143
1 vote
1 answer
346 views

Cutom wp_query for geolocation search, pagination not working

I have a custom search form that ends up on a page-template.php which then performs two WP_Query's. This is for a real estate where each property CPT has a long / lat value set via ACF. The code is ...
essexboyracer's user avatar
1 vote
1 answer
898 views

Not refreshing content pagination on search result

I am trying to create custom search on my website and everything goes okay except one problem - no refresh content on pagination. Here is what i am doing. My searchform: <form method="get" id="...
Andrey Vasilkovsky's user avatar

15 30 50 per page