I want to change the post footer to display the categories and the number of comments. How could I do this?
(and maybe display tags on the post page?)
thanks!
I want to change the post footer to display the categories and the number of comments. How could I do this?
(and maybe display tags on the post page?)
thanks!
bump? Do people answer questions here?
@kylehotchkiss: Probably not only after 5 hours. Imho, it seems leaving questions overnight tends to lead to more feedback.
I'm not sure what you mean though. Are you referring to the widgets in the footer?
The post - meta. Ya know, right after the entry (I've also seen it referred as the utility) I was just wondering how to remove the tags and edit link, and leave the categories and comments link. Thanks for any help!
@kylehotchkiss: I think you'll want to look at filtering the thematic_postfooter. You can skip right to the end of this post for what I think is the solution, or you're welcome to read through my attempt at explaining why:
A simple example of filtering the thematic_postfooter can be found at Devin's list of Useful Thematic Filters.
add_filter('thematic_postfooter','my_postfooter');
function my_postfooter() {
// The Sound of One Hand Clapping
}
add_filter('thematic_postfooter','my_postfooter');
However, if you're just trying to remove tags and the edit link, you can simply filter those parts out.
As a reference, the default structure of thematic_postfooter can be found in Chris' post.
And the specific filters (tied to thematic_postfooter) that you're probably interested in are listed on the FAQ page, including:
thematic_postfooter_posteditlink()
thematic_postfooter_postcategory()
thematic_postfooter_posttags()
thematic_postfooter_postcomments()
thematic_postfooter_postconnect()
thematic_postfooter()
So if you just wanted to remove the edit link using the filter, something like this would work:
add_filter('thematic_postfooter_posteditlink','noeditlink');
function noeditlink() {
//nothing
}
add_filter('thematic_postfooter_posteditlink','noeditlink');
Hope this helps.
Just realised I duplicated the add_filter lines above, sorry!
function noeditlink() {
//nothing
}
add_filter('thematic_postfooter_posteditlink','noeditlink');
should suffice I believe.
I want to get rid of the entire .entry-utility. Is there a way to do that?
@thexander: Without testing, I'm sure you could just filter out the entire thematic_postfooter function. Maybe something like:
function no_post_footer() {
//nothing
}
add_filter('thematic_postfooter','no_post_footer');
This is because, by default, on a single post, thematic_postfooter is set to show all of the other sub-functions (listed above) in a <div class="entry-utility"> div.
@flick unfortunately, devins list is gone. Is there a mirror of that, so I could bookmark it!
@kylehotchkiss: I think Devin has re-done his permalinks, but not yet had a chance to redirect the old links.
This is the new Thematic filter list page: http://wordpresstheming.com/useful-thematic-filters/
How would I remove the postfooter for a single post only (remains intact on index page) ?
OK So I could do this with code in the functions.php or css since my weekend attempts at the code didn't work I'll do it with css and come back to the code later.
You must log in to post.