Title: ACF: Star Rating Field
Author: lienann
Published: <strong>30 ພະຈິກ 2014</strong>
Last modified: 22 ມີນາ 2015

---

ຄົ້ນຫາປລັກອິນ

ປລັກອິນນີ້ **ຍັງບໍ່ທັນໄດ້ຮັບການທົດສອບກັບ WordPress 3 ເວີຊັນຫຼັກຫຼ້າສຸດ**. ມັນອາດຈະ
ບໍ່ໄດ້ຮັບການເບິ່ງແຍງ ຫຼື ສະໜັບສະໜູນອີກຕໍ່ໄປ ແລະ ອາດມີບັນຫາການເຮັດວຽກຮ່ວມກັນເມື່ອ
ໃຊ້ກັບ WordPress ເວີຊັນທີ່ໃໝ່ກວ່າ.

![](https://s.w.org/plugins/geopattern-icon/acf-starrating.svg)

# ACF: Star Rating Field

 ໂດຍ [lienann](https://profiles.wordpress.org/lienann/)

[ດາວໂຫຼດ](https://downloads.wordpress.org/plugin/acf-starrating.zip)

 * [ລາຍລອຽດ](https://lo.wordpress.org/plugins/acf-starrating/#description)
 * [ການຣີວິວ](https://lo.wordpress.org/plugins/acf-starrating/#reviews)
 *  [ການຕິດຕັ້ງ](https://lo.wordpress.org/plugins/acf-starrating/#installation)
 * [ການພັດທະນາ](https://lo.wordpress.org/plugins/acf-starrating/#developers)

 [ການຊ່ວຍເຫຼືອ](https://wordpress.org/support/plugin/acf-starrating/)

## ຄຳອະທິບາຍ

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.⌉⌊"Star rating" field appearance.⌉[

“Star rating” field appearance.

[⌊Field settings in ACF.⌉⌊Field settings in ACF.⌉[

Field settings in ACF.

[⌊Field settings in ACF.⌉⌊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.

## ຄຳຖາມທີ່ພົບເລື້ອຍ

  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:

## ການຣີວິວ

![](https://secure.gravatar.com/avatar/3b147f1ca091e20eb7b388a55dba0102ab541a8e7f7c7e2766f0daacde7d7b61?
s=60&d=retro&r=g)

### 󠀁[how could i made it compatible with latest acf](https://wordpress.org/support/topic/how-could-i-made-it-compatible-with-latest-acf/)󠁿

 [ramineros](https://profiles.wordpress.org/ramineros/) 15 ມັງກອນ 2021 1 ການຕອບກັບ

how could i made it compatible with latest acf

![](https://secure.gravatar.com/avatar/87d3ae41ad1d4c343eecc6cdbef954855359cfb99e2a5a97b82a73b9668f0574?
s=60&d=retro&r=g)

### 󠀁[The plugin is great, if you add something it’ll be greater!](https://wordpress.org/support/topic/the-plugin-is-great-if-you-add-something-itll-be-greater/)󠁿

 [Gero Nikolov](https://profiles.wordpress.org/geronikolov/) 8 ມີນາ 2017

Hey, The plugin is almost perfect! The only thing that is missing is a function 
that returns the average voting results. Can you add it please? 😀 Thank you! Cheers
mi amigo!

![](https://secure.gravatar.com/avatar/2e0bdf411703adfb2d51272c5992247d82cdfbd5e5cef91ad3dc81452dc46ab6?
s=60&d=retro&r=g)

### 󠀁[How to Enable Rich Snippets](https://wordpress.org/support/topic/how-to-enable-rich-snippets/)󠁿

 [vamban](https://profiles.wordpress.org/vamban/) 8 ກຸມພາ 2017

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 ລາຍການ ](https://wordpress.org/support/plugin/acf-starrating/reviews/)

## ຜູ້ຮ່ວມພັດທະນາ ແລະ ຜູ້ພັດທະນາ

“ACF: Star Rating Field” ແມ່ນຊອຟແວໂອເພັນຊອດ (Open Source). ບຸກຄົນຕໍ່ໄປນີ້ໄດ້ມີສ່ວນຮ່ວມ
ໃນການພັດທະນາປລັກອິນນີ້.

ຜູ້ຮ່ວມພັດທະນາ

 *   [ lienann ](https://profiles.wordpress.org/lienann/)

[ແປ “ACF: Star Rating Field” ເປັນພາສາຂອງເຈົ້າ.](https://translate.wordpress.org/projects/wp-plugins/acf-starrating)

### ສົນໃຈຮ່ວມພັດທະນາບໍ່?

[ເບິ່ງລະຫັດ](https://plugins.trac.wordpress.org/browser/acf-starrating/), ກວດເບິ່ງ
[ຄັງເກັບ SVN](https://plugins.svn.wordpress.org/acf-starrating/), ຫຼື ຕິດຕາມ [ບັນທຶກການພັດທະນາ](https://plugins.trac.wordpress.org/log/acf-starrating/)
ຜ່ານ [RSS](https://plugins.trac.wordpress.org/log/acf-starrating/?limit=100&mode=stop_on_copy&format=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.

## ຂໍ້ມູນກຳກັບ (Meta)

 *  ເວີຊັນ **1.0.2**
 *  ອັບເດດຫຼ້າສຸດເມື່ອ **11 ປີ ທີ່ຜ່ານມາ** ທີ່ຜ່ານມາ
 *  ການຕິດຕັ້ງທີ່ໃຊ້ງານຢູ່ **200+**
 *  ເວີຊັນ WordPress ** 3.5 ຫຼື ສູງກວ່າ **
 *  ທົດສອບເຖິງເວີຊັນ **4.1.42**
 *  ພາສາ
 * [English (US)](https://wordpress.org/plugins/acf-starrating/)
 * ແທັກ
 * [acf](https://lo.wordpress.org/plugins/tags/acf/)[acf4](https://lo.wordpress.org/plugins/tags/acf4/)
   [advanced custom fields](https://lo.wordpress.org/plugins/tags/advanced-custom-fields/)
   [rate](https://lo.wordpress.org/plugins/tags/rate/)[star rating](https://lo.wordpress.org/plugins/tags/star-rating/)
 *  [ມຸມມອງຂັ້ນສູງ](https://lo.wordpress.org/plugins/acf-starrating/advanced/)

## ການໃຫ້ຄະແນນ

 4.4 ຈາກທັງໝົດ 5 ດາວ.

 *  [  ການວິຈານ 5 ດາວ ຈຳນວນ 4 ລາຍການ     ](https://wordpress.org/support/plugin/acf-starrating/reviews/?filter=5)
 *  [  ການວິຈານ 4 ດາວ ຈຳນວນ 3 ລາຍການ     ](https://wordpress.org/support/plugin/acf-starrating/reviews/?filter=4)
 *  [  ການວິຈານ 3 ດາວ ຈຳນວນ 1 ລາຍການ     ](https://wordpress.org/support/plugin/acf-starrating/reviews/?filter=3)
 *  [  ການວິຈານ 2 ດາວ ຈຳນວນ 0 ລາຍການ     ](https://wordpress.org/support/plugin/acf-starrating/reviews/?filter=2)
 *  [  ການວິຈານ 1 ດາວ ຈຳນວນ 0 ລາຍການ     ](https://wordpress.org/support/plugin/acf-starrating/reviews/?filter=1)

[ການທົບທວນຂອງທ່ານ](https://wordpress.org/support/plugin/acf-starrating/reviews/#new-post)

[ເບິ່ງທັງໝົດ ການຣີວິວ](https://wordpress.org/support/plugin/acf-starrating/reviews/)

## ຜູ້ຮ່ວມພັດທະນາ

 *   [ lienann ](https://profiles.wordpress.org/lienann/)

## ການຊ່ວຍເຫຼືອ

ມີຄຳຖາມ ຫຼື ຕ້ອງການຄວາມຊ່ວຍເຫຼືອບໍ່?

 [ເບິ່ງຟໍຣັມການຊ່ວຍເຫຼືອ](https://wordpress.org/support/plugin/acf-starrating/)