Thanks to helgatheviking I've learned how to move bits from the extensions library into functions.php to tweak under the hood, despite my complete lack of PHP-fu. I've come unstuck with my attempts to reorganise the post meta section though. Here's how I want the HTML to look:
span class="comments-link" a href="#" 0 Comments /a /span
ul class="cat-links"
li a href="#"Category link /a /li
li a href="#"Category link /a /li
/ul
ul class="tag-links"
li a href="#" class="tag-name" Tag link /a /li
li a href="#" class="tag-name" Tag link /a /li
/ul
span class="edit" a href="#" Edit /a /span
From content-extensions.php, I'm looking at extracts like this:
// Create post category
function childtheme_override_postfooter_postcategory() {
$postcategory = '<span class="cat-links">';
if (is_single()) {
$postcategory .= __('This entry was posted in ', 'thematic') . get_the_category_list(', ');
$postcategory .= '</span>';
} elseif ( is_category() && $cats_meow = thematic_cats_meow(', ') ) { /* Returns categories other than the one queried */
$postcategory .= __('Also posted in ', 'thematic') . $cats_meow;
$postcategory .= '</span> <span class="meta-sep meta-sep-tag-links">|</span>';
} else {
$postcategory .= __('Posted in ', 'thematic') . get_the_category_list(', ');
$postcategory .= '</span> <span class="meta-sep meta-sep-tag-links">|</span>';
}
return apply_filters('thematic_postfooter_postcategory',$postcategory);
} // end postfooter_postcategory
I simply don't understand what's going on with the .= or the period separators or what the 'thematic' in __('Posted in', 'thematic') does (or $cats_meow!!!).
It would be fantastic if someone could give me a basic template for how to edit this category section to produce the lists I need, or give me a pointer in that direction.
ALSO, I'd like to put, if possible, the URL-friendly slug for my tag names into the anchors as a class so I can style them individually. If possible. This isn't critical, but would be a nice touch.
Any help much appreciated!
EDIT: Despite not using angle brackets, my HTML sample still broke the page. I hope it's still clear.