how could I write a conditional tag for if post is displaying on front page?
-
basically I’m looking to wrap post content with a certain div if it is displaying on the front page for styling purposes.
So in the main loop something like:
if(***post id 47 is on front page*****)
{ … wrap the content in a div with x class }
how could I do this? thanks.
Viewing 5 replies - 1 through 5 (of 5 total)
Viewing 5 replies - 1 through 5 (of 5 total)
- The topic ‘how could I write a conditional tag for if post is displaying on front page?’ is closed to new replies.