Hi,
You could use a conditonal tag and write a function to hide the date in that specific category. See here => http://codex.wordpress.org/Conditional_Tags#A_Category_Page
Another way to do it if you are displaying that category of posts on a page by themselves there is likely a body_class() and/or post_class() which would output category dependant css classes;
use these in your stylesheet like so:
.category-somecategory .entry-date {
display: none;
}
Thread Starter
Robert
(@robbieb1953)
Thanks trishasalas! The css took away the date on the posts in that category.
But now it reads, “posted on blank by author name”. Is there a way to get rid of the word”on”?
With the conditional tags, let’s say:
is_category( ‘category name’ )
what else would I need to include to do this?
Again, thanks…
Oh, sorry …that was kinda of an obvious thing I completely forgot about. Try changing it to
.category-somecategory .entry-meta {
display: none;
}
I think that will get rid of the date without getting rid of the author information. 🙂
Glad to help.
If that doesn’t do what you want can you post a link? It would help to see how the theme has formatted things.
Thread Starter
Robert
(@robbieb1953)
trishasalas,
The second group of css took away all the data, so I went back to your first suggestion.
Here’s what it is:
http://bit.ly/1feqU1g
Thanks!