• Can someone tell me how to do a basic if…else statement in php? What I want to do is within the loop, create a statement that checks which category a post is coming from, and if it comes from a certain category (my “about” category), then display the post without the comment/feedback stuff, and if the post is not from that category, then display the post with all the normal stuff.

Viewing 4 replies - 1 through 4 (of 4 total)
  • Thread Starter slappo

    (@slappo)

    Thanks for the link. I’m trying to do it php, though. I’ve created an about page that’s hidden from the categories list, but all I want to do is get rid of the “comments” and “leave a comment” info when I call that post. There’s no way to do this easily?

    Can’t you just uncheck Allow Comments in the related posts??

    I’m a raw beginner. I’m now online , operating and posting (whew) and want to go further. Need 1,2,3, steps description on how to add pictures and graphics to my site. Also where can I go to get a glossary of blog terms?

    Thread Starter slappo

    (@slappo)

    Unchecking “Allow Comments” just takes away the comments themselves, not the title of the section “comments” or the “leave a comment” title either. I want to get rid of those design elements themselves. Which is stuff that’s listed under the div=post

Viewing 4 replies - 1 through 4 (of 4 total)

The topic ‘Basic “If…else…” statement’ is closed to new replies.