Forums › Forums › Search & Filter Pro › Paged detection in php when using Ajax?
- This topic has 4 replies, 2 voices, and was last updated 7 years, 3 months ago by
Trevor.
-
Anonymous(Private) August 15, 2019 at 8:50 pm #219085
Hello,
I have created a custom template for the results and are having trouble with one part. On the first/initial page of results (displaying all) the first 3 posts are formatted differently than the rest of the posts. That’s easy enough to do in my template file. However, on the second page of results I don’t want the first 3 formatted differently. If I wasn’t using Ajax I know I could use
!is_paged()to find out if I’m on the first/initial page of results. But that is not working…I’m guessing because the form is using ajax to load the results results.Does anyone know of a way in PHP that I can detect whether or not I’m on the first page of results when being loaded using Ajax?
-
AuthorPosts