As a substitute of inserting a brand new column with a featured picture on it, I want to put the featured picture below the publish’s already current title. I can not appear to determine the way you insert issues on the title property nevertheless. Reaching this:
I’ve discovered this publish: How am i able to place Characteristic Picture below title subject in wp-admin?
With a snippet that I can not get to work.
In any other case there are many options for including new columns with featured photos in them.
I’ve arrived at one thing like this:
add_action('admin_head-edit.php', perform(){
add_filter('the_title', perform( $title, $id ) {
return $title . get_the_post_thumbnail_url();
}, 100, 2);
});
But when I take advantage of get_the_post_thumbnail_url
the url is embedded as a part of the title, and if I take advantage of the_post_thumbnail( 'thumbnail' )
it renders the picture twice.