php - Any idea why Wordpress's inCategorgy tag is not working? -


So I'm trying to add "-one" to a class for a post if it's in Wordpress Is in special category. As if I am seeing a post on which there is a category ID of 7, then I have to say that "example" in "Example-None" is a definite class of change.

Here's my code:

'? & Gt; "

The strange thing is with the code, when I see all the posts in a specific category, it works in one page. But when I am in an internal category If the code is in a specific category, the code does not work.

I am using the in_category ('7') tag to get it on a WordPress sidebar.

Any thoughts on what I am doing wrong?

I am surrounded by id The quotes will be removed from the category:

  in_category (7)  

This should be a number, not a string.


Comments

Popular posts from this blog

c# - sqlDecimal to decimal clr stored procedure Unable to cast object of type 'System.Data.SqlTypes.SqlDecimal' to type 'System.IConvertible' -

Calling GetGUIThreadInfo from Outlook VBA -

Obfuscating Python code? -