Skip to:
Content
Pages
Categories
Search
Top
Bottom

Re: topic.php so first post has unique css


LPH2005
Participant

@lph2005

Using

if ( $topic_template->post->post_position == 1 ) :
blah blah
else
a different blah blah
endif

with php tag wrapped around it … almost works. When there is only 1 post then I get one type of css and if there are more than 1 posts then I get a different one.

Almost there.

Which brings me to a different question that I asked earlier … what if I wanted css different for admin and moderators .. looks like I just need to know a listing of the functions and how to use them here.

For example

if (post by admin) <— however that looks
blah blah
else
a different look
endif

Something like that .. and just need to know the post by admin function

Skip to toolbar