Add icon/badge next to posttitle of specific category

This will depend on how your theme is structuring the templates for single.php (individual post view) but I’ll show you what to look for and how to apply via CSS. So from a theme I’m working on, this is where the category gets included in the post: <article id=”post-3417″ class=”post-3417 post type-post status-publish format-standard hentry … Read more

custom admin thumbnail for videos, not getting post’s id?

First, you don’t need the apply_filters below. That is called directly from the wp_mime_type_icon() function already. The issue is that your add_filter() call is missing the $accepted_args parameter. The add_filter() function has the following construct: add_filter($tag, $function_to_add, $priority = 10, $accepted_args = 1) So the $accepted_args is 1 by default. Because of this, only the … Read more

Compact pingback list with favicons

The first you do: separate regular comments and pingbacks. In your comments.php set the type parameter for both: <ol class=”commentlist”> <?php // show regular comments wp_list_comments( array ( ‘type’ => ‘comment’, ‘style’ => ‘ul’ ) ); ?></ol> <ol class=”pinglist”> <?php // show pingbacks and trackbacks, short: “pings” wp_list_comments( array ( ‘type’ => ‘pings’, ‘style’ => … Read more