이 플러그인은 최근 3개의 주요 워드프레스 출시와 시험 되지 않았습니다. 워드프레스의 좀 더 최근 버전으로 이용할 때 더 이상 관리되지 않고 지원되지 않고 호환성 문제가 있을 수 있습니다.

ACF: Star Rating Field

설명

Add the possibility to use rating field in ACF.

Plug-in provide three calculation method for voting:

  1. calculate by cookies (any visitor);
  2. by IP (any visitor);
  3. by user id (registered users only).

If “calculated by cookies” is selected, the only users which use browser with
cookies enabled will be able to vote

In field settings you can also:

  1. open|close vote;
  2. tune the number of stars (1 to 20);
  3. specify the method of re-voting – possible(period)|never

Use the_field($field_key, $post_id) or get_field($field_key, $post_id) function
in page template for field output (see ACF documentation).

In admin panel the rating is inactive.

Attention! Before removing the plugin files read uninstall.php

Languages: English, Français, Русский

I apologize for possible mistakes in plugin translation.
I will be glad to accept the help with the correct translation of a plugin into
English and to correction of my mistakes.

Gratitudes:

Thanks to Ivan Shamshur for JS.

French Translation – thanks to Nicolas Kern.

Compatibility

This ACF field type is compatible with: ACF 4

For developers: https://github.com/lienann/acf-starrating

스크린샷

  • “Star rating” field appearance.
  • Field settings in ACF.
  • Field settings in ACF.

설치

  1. Copy the acf-starrating folder into your wp-content/plugins folder
  2. Activate the Star Rating Field plugin via the plugins admin page
  3. Create a new field via ACF and select the Star Rating type
  4. Add the_field ($field_key, $post->ID) function in the template of your theme.
    Please refer to the description and FAQ for more info regarding the field type
    settings.

FAQ

How to display field on the page?

Add the_field($field_key, $post_id) or get_field($field_key, $post_id) into page
template where it is necessary for you (use $field_name only, if you are sure that field value exists):

<?php
    // add fields in the Loop
    if ( have_posts() ) {
        while ( have_posts() ) {
            the_post();
            if ( function_exists( 'the_field' ) ) {
                the_field( 'quality', $post->ID );
            }
            the_content(); 
        } // end while
    } // end if
?>
<?php
    // display rating field for post_id=123
    if ( function_exists( 'the_field' ) ) {
        the_field( 'interest', '123' );
        the_field( 'field_62ad11se531h', '123' );
    }
?>
<?php
    // display rating field of user_id = 1
    // to pass $post_id value use 'user_' + user ID format
    if ( function_exists( 'get_field' ) ) {
        $field = get_field( 'field_53ac25b2e521', 'user_1' );
        echo $field;
    }
?>

For detailed information about this functions see ACF documentation.

How to display vote results and number of votes?

Use get_field() function of ACF plugin (with the third option = FALSE), to display
vote result on the page:

후기

2017년 2월 8일
Plugin seems promising and looking to use with my blog [ link redacted, please do not post links in reviews ] How can i apply google rich snippets to the star ratings?
모든 8 평가 읽기

기여자 & 개발자

“ACF: Star Rating Field”(은)는 오픈 소스 소프트웨어입니다. 다음의 사람들이 이 플러그인에 기여하였습니다.

기여자

자국어로 “ACF: Star Rating Field”(을)를 번역하세요.

개발에 관심이 있으십니까?

코드 탐색하기는, SVN 저장소를 확인하시거나, 개발 기록RSS로 구독하세요.

변경이력

1.0.2

  • Added French Translation. Thanks to Nicolas Kern.

1.0.1

  • Fixed bug with cookie setup.
  • Updated documentations.

1.0.0

  • Initial Release.