I am customizing a ClassiPress theme and I want to style the posts differently based on the parent category. I have created 3 categories and then several child categories. I added the post_class function to the single and the post list but it is not outputting either the parent or the child category. (It does out put though "post-32 ad_listing type-ad_listing status-publish hentry")

ClassiPress creates a custom post type with a custom taxonomy, so perhaps that might be the track to take, but my point is I want to style the post using post_class and it would be awesome if I could just output the parent category to keep the code concise

I have read tons of posts and none of the solutions seemed to work for me.

Any Ideas???

link|improve this question
feedback

1 Answer

From what you said in your question, I am guessing that a filter is being run on the post_class function somewhere because by default, the post_class does indeed output the categories of the post.

Since ClassiPress is a premium theme, I would suggest asking the theme author for the answer as there is no way for anybody here to look through the code to see where/if there is a conflict (we would have to buy it).

link|improve this answer
feedback

Your Answer

 
or
required, but never shown

Not the answer you're looking for? Browse other questions tagged or ask your own question.