{"id":33163,"date":"2014-11-30T17:42:16","date_gmt":"2014-11-30T17:42:16","guid":{"rendered":"https:\/\/wordpress.org\/plugins-wp\/acf-starrating\/"},"modified":"2015-03-22T08:45:48","modified_gmt":"2015-03-22T08:45:48","slug":"acf-starrating","status":"publish","type":"plugin","link":"https:\/\/tah.wordpress.org\/plugins\/acf-starrating\/","author":12551286,"comment_status":"closed","ping_status":"closed","template":"","meta":{"_crdt_document":"","version":"1.0.2","stable_tag":"trunk","tested":"4.1.42","requires":"3.5","requires_php":"","requires_plugins":"","header_name":"Advanced Custom Fields: Star Rating Field","header_author":"lienann","header_description":"","assets_banners_color":"","last_updated":"2015-03-22 08:45:48","external_support_url":"","external_repository_url":"","donate_link":"","header_plugin_uri":"https:\/\/github.com\/lienann\/acf-starrating","header_author_uri":"","rating":4.4,"author_block_rating":0,"active_installs":300,"downloads":8773,"num_ratings":8,"support_threads":0,"support_threads_resolved":0,"author_block_count":0,"sections":["description","installation","faq","changelog"],"tags":[],"upgrade_notice":[],"ratings":{"1":0,"2":0,"3":"1","4":"3","5":"4"},"assets_icons":[],"assets_banners":[],"assets_blueprints":{},"all_blocks":[],"tagged_versions":["1.0.0","1.0.1"],"block_files":[],"assets_screenshots":{"screenshot-2.png":{"filename":"screenshot-2.png","revision":"1538988","resolution":"2","location":"plugin"},"screenshot-3.png":{"filename":"screenshot-3.png","revision":"1538988","resolution":"3","location":"plugin"},"screenshot-1.png":{"filename":"screenshot-1.png","revision":"1538988","resolution":"1","location":"plugin"}},"screenshots":{"1":"\"Star rating\" field appearance.","2":"Field settings in ACF.","3":"Field settings in ACF."},"jetpack_post_was_ever_published":false},"plugin_section":[],"plugin_tags":[2211,2292,2217,2294,2293],"plugin_category":[53,59],"plugin_contributors":[86461],"plugin_business_model":[],"class_list":["post-33163","plugin","type-plugin","status-publish","hentry","plugin_tags-acf","plugin_tags-acf4","plugin_tags-advanced-custom-fields","plugin_tags-rate","plugin_tags-star-rating","plugin_category-ratings-and-reviews","plugin_category-utilities-and-tools","plugin_contributors-lienann","plugin_committers-lienann"],"banners":[],"icons":{"svg":false,"icon":"https:\/\/s.w.org\/plugins\/geopattern-icon\/acf-starrating.svg","icon_2x":false,"generated":true},"screenshots":[{"src":"https:\/\/ps.w.org\/acf-starrating\/trunk\/screenshot-1.png?rev=1538988","caption":"\"Star rating\" field appearance."},{"src":"https:\/\/ps.w.org\/acf-starrating\/trunk\/screenshot-2.png?rev=1538988","caption":"Field settings in ACF."},{"src":"https:\/\/ps.w.org\/acf-starrating\/trunk\/screenshot-3.png?rev=1538988","caption":"Field settings in ACF."}],"raw_content":"<!--section=description-->\n<p>Add the possibility to use rating field in ACF.<\/p>\n\n<p>Plug-in provide three calculation method for voting:<\/p>\n\n<ol>\n<li>calculate by cookies (any visitor);<\/li>\n<li>by IP (any visitor);<\/li>\n<li>by user id (registered users only).<\/li>\n<\/ol>\n\n<p>If \"calculated by cookies\" is selected, the only users which use browser with \ncookies enabled will be able to vote<\/p>\n\n<p>In field settings you can also:<\/p>\n\n<ol>\n<li>open|close vote;<\/li>\n<li>tune the number of stars (1 to 20);<\/li>\n<li>specify the method of re-voting - possible(period)|never<\/li>\n<\/ol>\n\n<p>Use the_field($field_key, $post_id) or get_field($field_key, $post_id) function\nin page template for field output (see ACF documentation).<\/p>\n\n<p>In admin panel the rating is inactive.<\/p>\n\n<p><strong>Attention!<\/strong> Before removing the plugin files read uninstall.php<\/p>\n\n<p><strong>Languages:<\/strong> English, Fran\u00e7ais, \u0420\u0443\u0441\u0441\u043a\u0438\u0439<\/p>\n\n<p>I apologize for possible mistakes in plugin translation.\nI will be glad to accept the help with the correct translation of a plugin into\nEnglish and to correction of my mistakes.<\/p>\n\n<h4>Gratitudes:<\/h4>\n\n<p>Thanks to Ivan Shamshur for JS.<\/p>\n\n<p>French Translation - thanks to Nicolas Kern.<\/p>\n\n<h4>Compatibility<\/h4>\n\n<p>This ACF field type is compatible with: ACF 4<\/p>\n\n<p>For developers: https:\/\/github.com\/lienann\/acf-starrating<\/p>\n\n<!--section=installation-->\n<ol>\n<li>Copy the <code>acf-starrating<\/code> folder into your <code>wp-content\/plugins<\/code> folder<\/li>\n<li>Activate the Star Rating Field plugin via the plugins admin page<\/li>\n<li>Create a new field via ACF and select the Star Rating type<\/li>\n<li>Add the_field ($field_key, $post-&gt;ID) function in the template of your theme.\nPlease refer to the description and FAQ for more info regarding the field type\nsettings.<\/li>\n<\/ol>\n\n<!--section=faq-->\n<dl>\n<dt>How to display field on the page?<\/dt>\n<dd><p>Add the_field($field_key, $post_id) or get_field($field_key, $post_id) into page\ntemplate where it is necessary for you (use $field_name only, if you are sure that field value exists):<\/p>\n\n<pre><code>&lt;?php\n    \/\/ add fields in the Loop\n    if ( have_posts() ) {\n        while ( have_posts() ) {\n            the_post();\n            if ( function_exists( 'the_field' ) ) {\n                the_field( 'quality', $post-&gt;ID );\n            }\n            the_content(); \n        } \/\/ end while\n    } \/\/ end if\n?&gt;\n&lt;?php\n    \/\/ display rating field for post_id=123\n    if ( function_exists( 'the_field' ) ) {\n        the_field( 'interest', '123' );\n        the_field( 'field_62ad11se531h', '123' );\n    }\n?&gt;\n&lt;?php\n    \/\/ display rating field of user_id = 1\n    \/\/ to pass $post_id value use 'user_' + user ID format\n    if ( function_exists( 'get_field' ) ) {\n        $field = get_field( 'field_53ac25b2e521', 'user_1' );\n        echo $field;\n    }\n?&gt;\n<\/code><\/pre>\n\n<p>For detailed information about this functions see ACF documentation.<\/p><\/dd>\n<dt>How to display vote results and number of votes?<\/dt>\n<dd><p>Use get_field() function of ACF plugin (with the third option = FALSE), to display \nvote result on the page:\n    <\/p><\/dd>\n\n<\/dl>\n\n<!--section=changelog-->\n<h4>1.0.2<\/h4>\n\n<ul>\n<li>Added French Translation. Thanks to Nicolas Kern.<\/li>\n<\/ul>\n\n<h4>1.0.1<\/h4>\n\n<ul>\n<li>Fixed bug with cookie setup.<\/li>\n<li>Updated documentations.<\/li>\n<\/ul>\n\n<h4>1.0.0<\/h4>\n\n<ul>\n<li>Initial Release.<\/li>\n<\/ul>","raw_excerpt":"&quot;Star rating&quot; field. Add-on to Advanced Custom Fields plugin.","jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/tah.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin\/33163","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/tah.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin"}],"about":[{"href":"https:\/\/tah.wordpress.org\/plugins\/wp-json\/wp\/v2\/types\/plugin"}],"replies":[{"embeddable":true,"href":"https:\/\/tah.wordpress.org\/plugins\/wp-json\/wp\/v2\/comments?post=33163"}],"author":[{"embeddable":true,"href":"https:\/\/tah.wordpress.org\/plugins\/wp-json\/wporg\/v1\/users\/lienann"}],"wp:attachment":[{"href":"https:\/\/tah.wordpress.org\/plugins\/wp-json\/wp\/v2\/media?parent=33163"}],"wp:term":[{"taxonomy":"plugin_section","embeddable":true,"href":"https:\/\/tah.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_section?post=33163"},{"taxonomy":"plugin_tags","embeddable":true,"href":"https:\/\/tah.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_tags?post=33163"},{"taxonomy":"plugin_category","embeddable":true,"href":"https:\/\/tah.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_category?post=33163"},{"taxonomy":"plugin_contributors","embeddable":true,"href":"https:\/\/tah.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_contributors?post=33163"},{"taxonomy":"plugin_business_model","embeddable":true,"href":"https:\/\/tah.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_business_model?post=33163"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}