Home 게시판 커뮤니티 Q&A post format 질문입니다.

2개 답변, 2 voices Last updated by Avatar of 김대현김대현 12 years, 9 months 전
  • Avatar of 김대현김대현
    Participant
    @myios
    #6500

    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는 코어 파일이라 업데이트할때 교체가 되서 되도록이면 건들지 않을려고 합니다.

    갠찬은 플러그인이나 좋은 방법 없을까요?

     

    Avatar of 082net082net
    Keymaster
    @082net
    #6503

    플러그인 디렉토리에 ‘WP Post Formats‘ 라는 플러그인이 있던데, 한 번 써보심이… 저는 아직 사용해 보지 않았습니다 ^^;

    Avatar of 082net
    Facebook 사용자 모임 그룹 도 함께 운영되고 있으며, 격 주로 미트업과 스터디를 진행하고 있으니 관심 있으신 분들의 많은 참여 바랍니다 🙂
    Avatar of 김대현김대현
    Participant
    @myios
    #6508

    답변 감사합니다.

3 글 보임 - 1에서 3 까지 (총 3 중에서)
  • 답변은 로그인 후 가능합니다.