Give Up on Import Tumblr to WordPress

Terakhir diperbaharui: Kamis, 25 Agustus 2016 pukul 15:12
Tautan: http://darto.id/6h

Finnaly I Have to give up to import tumblr to my new site. I use Tools => Import => Tumblr but no luck of succeeded. But suddenly this morning in my post show new row of post with (no title), try to delete the post but it’s not working by Click Trash. Lost in the way, I deleted that post with PhpMyAdmin.

I guess I will start the site with the new one. Sorry Tumblr, we have great time with no worried about space usage but this is so hard for me to customize you. Have to manually with categories and tags to show it on frontpage and can not create contact pages or new page with some portfolio. It’s time for change and again I have to delete ask.radiorodja.com or radiorodja.tumblr.com since we change that page to back on the main site radiorodja.com and of course with forward url.

How to add featured image thumbnail to WordPress admin columns

Terakhir diperbaharui: Kamis, 25 Agustus 2016 pukul 15:12
Tautan: http://darto.id/6i

The admin pages listing the site’s posts and pages come with various text columns like title, tags, categories, author and so on. In order to see what the featured images are, you have to visit each post or page individually. Using this hack you can add a column with a reasonably sized thumbnail copy of the featured image. Please note that this only works for themes that support featured images.

Just add following code to your theme’s functions.php file.

// Add the posts and pages columns filter. They can both use the same function.
add_filter('manage_posts_columns', 'tcb_add_post_thumbnail_column', 5);
add_filter('manage_pages_columns', 'tcb_add_post_thumbnail_column', 5);

// Add the column
function tcb_add_post_thumbnail_column($cols){
  $cols['tcb_post_thumb'] = __('Featured');
  return $cols;
}

// Hook into the posts an pages column managing. Sharing function callback again.
add_action('manage_posts_custom_column', 'tcb_display_post_thumbnail_column', 5, 2);
add_action('manage_pages_custom_column', 'tcb_display_post_thumbnail_column', 5, 2);

// Grab featured-thumbnail size post thumbnail and display it.
function tcb_display_post_thumbnail_column($col, $id){
  switch($col){
    case 'tcb_post_thumb':
      if( function_exists('the_post_thumbnail') )
        echo the_post_thumbnail( 'admin-list-thumb' );
      else
        echo 'Not supported in theme';
      break;
  }
}

Source: http://j.mp/15q4vaH