functions.php 파일 내용 추가 // GET FEATURED IMAGE function zeein_get_featured_image($post_ID) { $post_thumbnail_id = get_post_thumbnail_id($post_ID); if ($post_thumbnail_id) { $post_thumbnail_img = wp_get_attachment_image_src($post_thumbnail_id, 'thumbnail'); return $post_thumbnail_img[0]; } } // ADD NEW COLUMN function zeein_columns_head($defaults) { // 일자 전에 추가 할때 $ㅜnew = array(); $defaults['featur..
// custom_content_bar function custom_content_bar($attr, $content = null) { $src = wp_get_attachment_image_src( get_post_thumbnail_id($post->ID), array(10000, 10000) ); $return_string = ''; $return_string .= ''.$content.''; $return_string .= ''; return $return_string; } // custom_content_bar_url function custom_content_bar_url($attr, $content = null) { extract(shortcode_atts(array( "src" => 'htt..
워드프레스의 로그인 시간을 늘려 작업을 편하게 해준다. add_filter('auto_cookie_expiration', 'my_expiration_filter', 99, 3); function my_expiration_filter($seconds, $user_id, $remember) { if( is_admin() ) { // if "remember me" is checked; if ( $remember ( { // WP defaults to 2weeks; $expiration = 140*24*60*60 // 140일 } else { // WP defaults to 48 hrs/2 days; $expiration = 20*24*60*60 // 20일 } // http://en.wikipedia.org/..