is is not in

So like I said in a previous post, on this blog/website I have built for the Romans class I set up a conditional statement; depending on what category you were in you would see a corresponding header image.

Well I realized last night that, if you were viewing a single post it would go back to the default image, even when the category called for something different.

Looking over at codex.wordpress.org’s page on conditional tags showed that you can use is_category and also in_category. I had originally used is, which—after a closer reading—apparently only works when viewing the category itself not the individual posts in the category.

Kind of lame, if you ask me. I’m not really sure the benefit of that. But anyway the in_category seems to recognize both.

So I changed one letter and everything works great.

One Response

  1. amber perrodin writes:

    “is is not in” started to sound like a title introducing a post about philosophy…or something similar to “the thingness of the thing”….though im sure that if you changed one thing, it wouldnt be as simple in this context. im glad that you were able to fix your problem.

Leave a Reply