Reputation: 625
Thanks in advance.
I would like to have the 'posted by _' at the bottom of posts in wordpress, but not the time it was posted. From the html these are in the same tag (author), so if I wanted to hide one I would end up hiding the other as well. I was wondering if there is a way to hide the time posted from view without deleting part of a php file.
Posted by AUTHOR at 10:06 pm
<span class="author"><span class="icon"> </span>Posted by <a href="http://localhost/wordpress/author/me/">AUTHOR</a> at 10:06 pm</span>
When I would like to have it look like:
Posted by AUTHOR
Upvotes: 1
Views: 240
Reputation: 2211
So I installed Suffusion on my blog to take a look at how to fix this. It looks like an option is provided to do this...
If you need to customize further, the code for the author line is in suffusion\functions\actions.php : suffusion_print_author_byline()
Also, for a more generic answer that can be used on other themes, you can search your theme files for references to "get_the_time" or "the_time", which are the built in functions in WP to get the post time for a post.
Upvotes: 2
Reputation: 444
You might be able to get away with targeting the element with css. display:none. You should be able to target the date specifically with css. That's the way it is with my blog. Then you can just use display:none. What theme are you using?
Upvotes: 0