We have an issue on our site search, when searching for “F&W”, the result shows that there are 394 results. But there aren’t any entries or show any result posts/pages. Just a number from nowhere.
Could you please take a look and any solutions to fix this?
2 years, 3 months ago MirelaKeymaster
This is really strange. I checked and it does not happen on our side, or anywhere else. Did you made any changes lately? Or did you install any new plugin?
This reply has been marked as private.
Nevermind, I figured this out.
The code was like this before $count = $allsearch->post_count; and it causes the random number issue.
Now I changed it to $count = $wp_query->found_posts; and it all works out!
- This reply was modified 2 years, 3 months ago by digitalstyle.
You must be logged in to reply to this topic.