I am customizing P2 as a child theme for my own private internal chatroom, and there are 2 things I want to do:
1. Remove the tag count between brackets on the posts.
2. Remove the "Permalink" action link (next to "Reply | Edit") on posts and comments, which I find pretty useless.
For #1, I normally just go inside the functions.php get_tags_with_count and replace:
$tag_link = '<a href="' . get_tag_link( $tag ) . '" rel="tag">' . $tag->name . ' ( ' . number_format_i18n( $tag->count ) . ' )</a>';
$tag_link = '<a href="' . get_tag_link( $tag ) . '" rel="tag">' . $tag->name . '</a>';
Is there a better/cleaner way to do that without having to make that change every time P2 gets updated?
For #2, the problem seems more complicated... I've done some Googling and it seems I may have to not only edit functions.php but also some other files. My first attempt seems to have made a mess as when I use the Search box on my site it now displays the search result in complete random order (as opposed to chronological).
Any help and suggestions appreciated!
Thanks in advance,