Conditional Tag for Paged Comments?
-
I’m wondering if there is a conditional tag for checking to see if you are on a page that has paginated comments? I want to have the first page of comments appear under the post (like normal) however if a user clicks to page 2 or more of the comments, like https://www.example.com/example-post/comment-page-1/#comments I don’t want to display the post again… only the comments. So I’m looking for a conditional tag to put into my theme so that the original post won’t display again when someone flips to page 2 (or beyond) of the comments. Sure, I could check the URL for the ‘comment-page-‘ string– but I’m looking for a cleaner way.
Viewing 3 replies - 1 through 3 (of 3 total)
Viewing 3 replies - 1 through 3 (of 3 total)
- The topic ‘Conditional Tag for Paged Comments?’ is closed to new replies.