Post format 을 추가 하려고 하는데
wp-content – themes – [테마명] – functions.php 에 있는
[code title=”functions.php”]
add_theme_support( ‘post-formats’, array(‘aside’, ‘test’) );
[/code]
코드와
wp-includes – post.php 에 있는
[code title=””]
function get_post_format_strings() {
$strings = array( ‘standard’ => _x( ‘Standard’, ‘Post format’ ),
‘aside’ => _x( ‘Aside’, ‘Post format’ ),
‘chat’ => _x( ‘Chat’, ‘Post format’ ),
‘gallery’ => _x( ‘Gallery’, ‘Post format’ ),
‘link’ => _x( ‘Link’, ‘Post format’ ),
‘image’ => _x( ‘Image’, ‘Post format’ ),
‘quote’ => _x( ‘Quote’, ‘Post format’ ),
‘status’ => _x( ‘Status’, ‘Post format’ ),
‘video’ => _x( ‘Video’, ‘Post format’ ),
‘audio’ => _x( ‘Audio’, ‘Post format’ ),
‘test’ => _x( ‘Test’, ‘Post format’ ),
);
return $strings;
}
[/code]
2곳을 추가해야 글을 쓸때 추가한 목록이 나오더라구요..
근데 post.php는 코어 파일이라 업데이트할때 교체가 되서 되도록이면 건들지 않을려고 합니다.
갠찬은 플러그인이나 좋은 방법 없을까요?