Home 게시판 커뮤니티 Q&A 참가신청서 플러그인

1개 답변, 2 voices Last updated by Avatar of Matthew ParkMatthew Park 8 years, 11 months 전
  • Avatar of SeongkiyongSeongkiyong
    Participant
    @seongkiyong
    #37054

    학생이 참가신청서 양식을 작성해서 올리면,

    몇 명이 참가했는지, 남자, 여자 비율이 어떻게 되는지 확인 가능한 플러그인 같은게 없을까요?

     

    참가신청 플러그인 및 참가자 분석 플러그인…

    Avatar of Matthew ParkMatthew Park
    Moderator
    @hackya
    #37056

    일단 필요하신 플러그인 종류는 Event 플러그인 이고, 찾아보시면 몇개 찾으실 수 있는데,

    https://wordpress.org/plugins/events-manager/
    https://wordpress.org/plugins/event-organiser/

    입맛에 딱 맞는 플러그인은 없으실거에요.

    더구나 성별을 구분하는 기능은 어떤 플러그인에도 없을 겁니다.

    플러그인을 뜯어고치려면 플러그인 구조파악부터 해야해서 시간이 많이 소비됩니다.

    그래서 이런경우는 그냥 속편하게 내가 플러그인을 하나 만드는게 더 나은 선택입니다.

    Digging into WordPress 라는 책에 Event post 생성하는 방법이 나오는데, 책이라서 책내용을 보여드릴 수는 없고,

    아래 글에 예제코드랑 설명이 상세하게 나와 있네요.

    How-to: Custom Post Type for Events

    예제코드 32번줄에 'supports'=> array('title', 'thumbnail', 'excerpt', 'editor') ,

    이렇게 나온거에

    'custom-fields' 를 하나 추가해주시면, 그러니까, 이렇게 변경하시면

    'supports'=> array('title', 'thumbnail', 'excerpt', 'custom-fields', 'editor') ,

    성별을 입력할 수 있는 Custom Fields 창이 생겨나거든요.

    여기에 성별을 입력하게 하고, 이 입력된 내용을 posts_groupby 함수로 세면 원하시는 기능이 만들어질 것 같은데, (비율이야 간단한 algebra 니까 그부분이 어려운건 아니고) 제가 php 는 까막눈인데다가 DB 쪽을 잘 몰라서 나머지 내용은 다음분께 패스!!! 합니다. ㅎㅎㅎ

    참고 Codex:

    https://codex.wordpress.org/Custom_Fields

    https://codex.wordpress.org/Plugin_API/Filter_Reference/posts_groupby

    Avatar of Matthew Park
    Attorney, front-end developer, digital media artist, WordPress enthusiast, & a father of 4 wonderful children.

    Lives in Colorado.

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