Find out if page or post in SERP?
-
Hey guys,
I’m sure I’ll work this out myself in the next few hours, but in my search results page I need to decipher whether the output loop contains just pages, just posts, or a mixture of both; and chuck out a suitable class to style off.
I’m guessing category is quite important here..?
Any help much appreciated – even some pseudo code would be awesome.
Thanks!
L
Viewing 3 replies - 1 through 3 (of 3 total)
Viewing 3 replies - 1 through 3 (of 3 total)
- The topic ‘Find out if page or post in SERP?’ is closed to new replies.