- This topic has 4 replies, 2 voices, and was last updated 6 years, 8 months ago by .
Viewing 5 posts - 1 through 5 (of 5 total)
Viewing 5 posts - 1 through 5 (of 5 total)
These forums are now closed and remain for historical purposes.
None of the content applies to the new version 3. For support, get in touch via our contact form.
Forums › Forums › Search & Filter Pro › Paged detection in php when using Ajax?
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?