Tag Info

New answers tagged

0

The first issue I'm seeing is that you're trying to use the_category as a class. This won't work as this function is intended to output the links to the categories assigned to that post. So it's putting the href inside your class. You can debug and see how it works by removing your li and the class. Then see how the_category works by itself. You can inspect ...


1

It's not clear what you're looking for here, but you could try to use the posts_where filter: /** * Remove posts, with a given status, on the edit.php (post) screen, * when there's no post status filter selected. */ add_action( 'posts_where', function( $where, $q ) { if( is_admin() && $q->is_main_query() && ! ...


0

Unluckily does not exists a filter like that. However, output pass throught WordPress usual filters. E.g. 'the_title' for title. The only problem is that you can't just add a filter to the 'the_title', because it will affect a lot of things. However you can use filters that are triggered only on post list admin screen (edit.php) to add the filter to title. ...


2

CSS is the answer. If you look at the HTML code of each row (<tr>), you will see that it has classes that include post ID, post status, post tags, categories, and so on. So, you can easily apply CSS rules based on that classes and based on post tags. For example, this is a row in one of my site: <tr id="post-24392" class="post-24392 type-post ...



Top 50 recent answers are included