{"id":122167,"date":"2020-05-26T18:31:32","date_gmt":"2020-05-26T18:31:32","guid":{"rendered":"https:\/\/br.wordpress.org\/plugins\/acf-onyx-poll\/"},"modified":"2025-06-11T21:58:53","modified_gmt":"2025-06-11T21:58:53","slug":"acf-onyx-poll","status":"publish","type":"plugin","link":"https:\/\/tah.wordpress.org\/plugins\/acf-onyx-poll\/","author":11598069,"comment_status":"closed","ping_status":"closed","template":"","meta":{"_crdt_document":"","version":"1.2.0","stable_tag":"1.2.0","tested":"6.8.5","requires":"4.7","requires_php":"7.0","requires_plugins":null,"header_name":"ACF Onyx Poll","header_author":"Andr\u00e9 M\u00e1cola Machado","header_description":"Create polls with ACF PRO","assets_banners_color":"d6dafa","last_updated":"2025-06-11 21:58:53","external_support_url":"","external_repository_url":"","donate_link":"","header_plugin_uri":"https:\/\/github.com\/andremacola\/acf-onyx-poll","header_author_uri":"https:\/\/github.com\/andremacola","rating":5,"author_block_rating":0,"active_installs":90,"downloads":5850,"num_ratings":4,"support_threads":0,"support_threads_resolved":0,"author_block_count":0,"sections":["description","installation","faq","changelog"],"tags":{"1.0":{"tag":"1.0","author":"andremacola","date":"2020-05-26 19:37:08"},"1.0.1":{"tag":"1.0.1","author":"andremacola","date":"2020-05-29 07:20:00"},"1.1.0":{"tag":"1.1.0","author":"andremacola","date":"2020-05-30 02:32:01"},"1.1.1":{"tag":"1.1.1","author":"andremacola","date":"2020-05-30 07:02:07"},"1.1.2":{"tag":"1.1.2","author":"andremacola","date":"2020-08-12 16:24:06"},"1.1.3":{"tag":"1.1.3","author":"andremacola","date":"2020-09-21 12:19:20"},"1.1.4":{"tag":"1.1.4","author":"andremacola","date":"2021-01-14 02:50:15"},"1.1.5":{"tag":"1.1.5","author":"andremacola","date":"2022-08-20 22:56:53"},"1.1.6":{"tag":"1.1.6","author":"andremacola","date":"2023-09-29 03:59:12"},"1.1.7":{"tag":"1.1.7","author":"andremacola","date":"2024-07-26 22:10:42"},"1.1.8":{"tag":"1.1.8","author":"andremacola","date":"2024-07-28 18:19:35"},"1.1.9":{"tag":"1.1.9","author":"andremacola","date":"2025-05-20 04:20:30"},"1.2.0":{"tag":"1.2.0","author":"andremacola","date":"2025-06-11 21:58:53"}},"upgrade_notice":[],"ratings":{"1":0,"2":0,"3":0,"4":0,"5":4},"assets_icons":{"icon-128x128.png":{"filename":"icon-128x128.png","revision":2312534,"resolution":"128x128","location":"assets","locale":""},"icon-256x256.png":{"filename":"icon-256x256.png","revision":2312534,"resolution":"256x256","location":"assets","locale":""}},"assets_banners":{"banner-1544x500.png":{"filename":"banner-1544x500.png","revision":2314787,"resolution":"1544x500","location":"assets","locale":""},"banner-772x250.png":{"filename":"banner-772x250.png","revision":2314787,"resolution":"772x250","location":"assets","locale":""}},"assets_blueprints":{},"all_blocks":[],"tagged_versions":["1.0","1.0.1","1.1.0","1.1.1","1.1.2","1.1.3","1.1.4","1.1.5","1.1.6","1.1.7","1.1.8","1.1.9","1.2.0"],"block_files":[],"assets_screenshots":{"screenshot-1.png":{"filename":"screenshot-1.png","revision":2312534,"resolution":"1","location":"assets","locale":""},"screenshot-2.png":{"filename":"screenshot-2.png","revision":2312534,"resolution":"2","location":"assets","locale":""},"screenshot-3.png":{"filename":"screenshot-3.png","revision":2312534,"resolution":"3","location":"assets","locale":""}},"screenshots":{"1":"Admin List Screen.","2":"Creating a poll.","3":"Example of poll widget\/modal","4":"Showing poll results."},"jetpack_post_was_ever_published":false},"plugin_section":[],"plugin_tags":[2211,169630,186326,2254,3502],"plugin_category":[53,59],"plugin_contributors":[186327],"plugin_business_model":[],"class_list":["post-122167","plugin","type-plugin","status-publish","hentry","plugin_tags-acf","plugin_tags-aop","plugin_tags-onyx","plugin_tags-poll","plugin_tags-polls","plugin_category-ratings-and-reviews","plugin_category-utilities-and-tools","plugin_contributors-andremacola","plugin_committers-andremacola"],"banners":{"banner":"https:\/\/ps.w.org\/acf-onyx-poll\/assets\/banner-772x250.png?rev=2314787","banner_2x":"https:\/\/ps.w.org\/acf-onyx-poll\/assets\/banner-1544x500.png?rev=2314787","banner_rtl":false,"banner_2x_rtl":false},"icons":{"svg":false,"icon":"https:\/\/ps.w.org\/acf-onyx-poll\/assets\/icon-128x128.png?rev=2312534","icon_2x":"https:\/\/ps.w.org\/acf-onyx-poll\/assets\/icon-256x256.png?rev=2312534","generated":false},"screenshots":[{"src":"https:\/\/ps.w.org\/acf-onyx-poll\/assets\/screenshot-1.png?rev=2312534","caption":"Admin List Screen."},{"src":"https:\/\/ps.w.org\/acf-onyx-poll\/assets\/screenshot-2.png?rev=2312534","caption":"Creating a poll."},{"src":"https:\/\/ps.w.org\/acf-onyx-poll\/assets\/screenshot-3.png?rev=2312534","caption":"Example of poll widget\/modal"}],"raw_content":"<!--section=description-->\n<p><strong><em>This plugin requires <a href=\"https:\/\/www.advancedcustomfields.com\/pro\/\">ADVANCED CUSTOM FIELD PRO<\/a> installed.<\/em><\/strong><\/p>\n\n<p>Plugin for polls based on regular Wordpress and acf (advanced custom fields) functionalities using <strong>WP REST API<\/strong> and <strong><em>Javascript<\/em><\/strong> methods.<\/p>\n\n<p>The main goal of ACF Onyx Poll is to be <strong>totally free, lightweight and simple<\/strong>. No fancy, colorful and polluted options or donate screens.<\/p>\n\n<p>This plugin is based on <a href=\"https:\/\/twitter.com\">Twitter<\/a> poll cards style.<\/p>\n\n<h4>Features<\/h4>\n\n<p>\u2714 <strong>Gutemberg Block<\/strong> with live preview\n\u2714 Include poll with a shortcode (ommit the ID to get the latest poll) <code>[onyx-poll id=XX class=\"left|right|full\"]<\/code>\n\u2714 One click to vote\n\u2714 Works with cache plugins\n\u2714 Multiple polls per page\n\u2714 Support for images\n\u2714 Native widget for sidebar\n\u2714 Multiple style options <code>[onyx-poll class=\"twitter|standard\"]<\/code>\n\u2714 Show poll in a modal\n\u2714 Show poll results on widget after expired\n\u2714 Highlight choosed choice in results area\n\u2714 Limit vote by device or time\n\u2714 Poll activation\/expiration schedule\n\u2714 Results in percentage, numbers or both\n\u2714 Show\/Hide results\n\u2714 Customize css with css variables\n\u2714 Disable all plugin CSS and use your own\n\u2714 Custom columns on Wordpress data table admin area\n\u2714 Translations support<\/p>\n\n<h4>Observations<\/h4>\n\n<ul>\n<li><p>This plugin does not support Internet Explorer Browser. One of the goals of this plugin is to be js\/css lightweight and jQuery free.<\/p><\/li>\n<li><p>ACF Onyx Poll <a href=\"https:\/\/www.advancedcustomfields.com\/resources\/register-fields-via-php\/\">register fields via php<\/a> to be able to use Wordpress translation functions for field labels. So you won't be able to view\/edit the fields inside ACF Custom Fields Settings.<\/p><\/li>\n<li><p>To enable a better\/faster <strong>CRON<\/strong> you need to manually set your host cronjob to get <em>https:\/\/domain.tld\/wp-json\/onyx\/polls\/cron<\/em> endpoint or disable WP-Cron <code>define('DISABLE_WP_CRON', true);<\/code> inside your wp-config and manually create the cron in your host\/server<\/p>\n\n<ul>\n<li><p><strong>Option 1<\/strong>: To run every hour set the cron: <br \/> <code>0 * * * * wget -q -O - https:\/\/domain.tld\/wp-json\/onyx\/polls\/cron &gt; \/dev\/null 2&gt;&amp;1<\/code><\/p><\/li>\n<li><p><strong>Option 2<\/strong>: if you disable the default WP-Cron: <br \/> <code>0 * * * * wget -q -O - https:\/\/domain.com\/wp-cron.php?doing_wp_cron &gt; \/dev\/null 2&gt;&amp;1<\/code><\/p><\/li>\n<\/ul><\/li>\n<\/ul>\n\n<!--section=installation-->\n<p>From your WordPress dashboard<\/p>\n\n<ol>\n<li><strong>Visit<\/strong> Plugins &gt; Add New<\/li>\n<li><strong>Search<\/strong> for \"ACF Onyx Poll\"<\/li>\n<li><strong>Activate<\/strong> ACF Onyx Poll from your Plugins page<\/li>\n<li><strong>Click<\/strong> on the new menu item \"Polls\" and create your first Poll!<\/li>\n<\/ol>\n\n<!--section=faq-->\n<dl>\n<dt id='do%20i%20need%20acf%20pro%20installed%3F'><h3>Do I need ACF PRO Installed?<\/h3><\/dt>\n<dd><p>Yes, Advanced Custom Fields PRO is mandatory<\/p><\/dd>\n<dt id='how%20to%20add%20a%20poll%20to%20a%20post%3F'><h3>How to add a poll to a post?<\/h3><\/dt>\n<dd><ul>\n<li>If Gutenberg is active, you can use the <strong>ACF Onyx Poll Block<\/strong> with live preview<\/li>\n<li>Or..use the shortcode <code>[onyx-poll]<\/code> to get the latest poll<\/li>\n<li>To add a specific poll, assign the option <strong>ID<\/strong> with the requested poll to the shortcode: <code>[onyx-poll id=XX]<\/code><\/li>\n<li>You can align the poll container with the option <strong>class<\/strong> in the shortcode: <code>[onyx-poll class=left]<\/code>. Available options are <code>left, right, full<\/code><\/li>\n<li>Is it possible to combine style and aligment. Ex: <code>[onyx-poll class=\"standard left\"]<\/code><\/li>\n<\/ul><\/dd>\n<dt id='how%20to%20add%20a%20poll%20to%20a%20sidebar%3F'><h3>How to add a poll to a sidebar?<\/h3><\/dt>\n<dd><ul>\n<li>To include a <strong>widget<\/strong>, your theme need to support it. Go to Appereance &gt; Widgets and select <strong>Poll<\/strong> widget from <em>ACF Onyx Poll<\/em><\/li>\n<\/ul><\/dd>\n<dt id='is%20it%20possible%20to%20use%20my%20own%20css%3F'><h3>Is it possible to use my own CSS?<\/h3><\/dt>\n<dd><p>Yes, go to the settings poll menu. You can do some customization by overriding some CSS variables inside your css file.<\/p>\n\n<pre><code>.onyx-poll {\n    --pollWidgetWidth: 400px;\n    --borderColor: #dbe9f5;\n    --boxShadow: 0 4px 12px 6px rgba(31,70,88,0.04);\n    --modalBorderRadius: 4px;\n    --questionColor: #333;\n    --choiceColor: #333;\n    --buttonColor: #333;\n    --choiceHoverBG: #f5f5f5;\n    --choiceBarColor: #e0e0e0;\n    --choiceBorderRadius: 100px;\n    --closeBorderRadius: 100px;\n    --loaderBorderColor: rgb(209, 226, 240);\n    --loaderBG: #a3caec;\n}\n<\/code><\/pre><\/dd>\n<dt id='what%20kind%20of%20logs%20and%20user%20data%20this%20plugin%20saves%20in%20database%3F'><h3>What kind of logs and user data this plugin saves in database?<\/h3><\/dt>\n<dd><p>At the database side, ACF Onyx Poll uses the default ACF\/Wordpress structure to store data (the meta fields). Nothing to worry about here.<\/p>\n\n<p>For privacy, ACF Onyx Poll <strong>does not store<\/strong> any user data like ip address, usernames etc...<\/p>\n\n<p>The only things the plugin saves in the user's browser is some cookies to check the user choice for specific poll, if the modal was previously showed\/closed and a timer. You can check the cookies by looking for <code>onyx_poll_limit_XX, onyx_poll_modal and onyx_poll_choice_XX<\/code>.<\/p><\/dd>\n<dt id='what%20about%20browsers%20support%3F'><h3>What about browsers support?<\/h3><\/dt>\n<dd><p>All modern browsers will be fine: Chrome, Firefox, Safari and Microsoft Edge (legacy and chromium based).<\/p>\n\n<p>This plugin will not work with any Internet Explorer version.<\/p><\/dd>\n\n<\/dl>\n\n<!--section=changelog-->\n<h4>1.2.0<\/h4>\n\n<p><em>Release Date - 11 Jun 2025<\/em><\/p>\n\n<ul>\n<li>Fixed: Sanitize shortcode attributes to prevent Stored XSS<\/li>\n<\/ul>\n\n<h4>1.1.9<\/h4>\n\n<p><em>Release Date - 20 Abr 2025<\/em><\/p>\n\n<ul>\n<li>Fixed: Wordpress textdomain translation notices<\/li>\n<\/ul>\n\n<h4>1.1.8<\/h4>\n\n<p><em>Release Date - 28 Jul 2024<\/em><\/p>\n\n<ul>\n<li>Fixed: PHP 8.2 Deprecated dynamic property warnings<\/li>\n<\/ul>\n\n<h4>1.1.7<\/h4>\n\n<p><em>Release Date - 26 Jul 2024<\/em><\/p>\n\n<ul>\n<li>TESTED: WordPress up to 6.6.1<\/li>\n<\/ul>\n\n<h4>1.1.6<\/h4>\n\n<p><em>Release Date - 29 Set 2023<\/em><\/p>\n\n<ul>\n<li>TESTED: WordPress up to 6.3.1<\/li>\n<\/ul>\n\n<h4>1.1.5<\/h4>\n\n<p><em>Release Date - 20 Jul 2021<\/em><\/p>\n\n<ul>\n<li><p>TESTED: WordPress up to 5.8<\/p><\/li>\n<li><p>ADDED: Now is possible to change the poll image size in options menu<\/p><\/li>\n<li><p>FIXED: Label for singular votes, thanks to @Dathix. See more in: https:\/\/github.com\/andremacola\/acf-onyx-poll\/pull\/13<\/p><\/li>\n<\/ul>\n\n<h4>1.1.4<\/h4>\n\n<p><em>Release Date - 13 Jan 2021<\/em><\/p>\n\n<ul>\n<li><p>FIXED: Removed an ACF hook that was causing issues with ACF JSON save location. See more in: https:\/\/github.com\/andremacola\/acf-onyx-poll\/issues\/12<\/p><\/li>\n<li><p>FIXED: Fatal error on list polls when 'end date' field was for some reason saved with an empty value. See more in: https:\/\/github.com\/andremacola\/acf-onyx-poll\/issues\/11<\/p><\/li>\n<\/ul>\n\n<p>Thanks to:\n- @rampantprint (on github)\n- @bwiebeck (on github)<\/p>\n\n<h4>1.1.3<\/h4>\n\n<p><em>Release Date - 21 Set 2020<\/em><\/p>\n\n<ul>\n<li>IMPROVEMENT: Using ACF PRO as MU Plugin is now possible.<\/li>\n<\/ul>\n\n<h4>1.1.2<\/h4>\n\n<p><em>Release Date - 11 Aug 2020<\/em><\/p>\n\n<ul>\n<li>TESTED: WordPress 5.5<\/li>\n<li>FIXED: Rest API method permission_callback typo<\/li>\n<\/ul>\n\n<h4>1.1.1<\/h4>\n\n<p><em>Release Date - 30 May 2020<\/em><\/p>\n\n<ul>\n<li>HOTFIX: Some filters were causing fatal errors in some themes and conflicting with certain plugins<\/li>\n<\/ul>\n\n<h4>1.1.0<\/h4>\n\n<p><em>Release Date - 30 May 2020<\/em><\/p>\n\n<ul>\n<li>NEW Gutenberg Onyx Poll Block with live preview (no more shortcodes :))<\/li>\n<li>Shortcode is now available to copy on the pool table list<\/li>\n<li>Fix some php notices (again :))<\/li>\n<li>CSS adjustments<\/li>\n<li>JS adjustments<\/li>\n<li>Languages updates<\/li>\n<\/ul>\n\n<h4>1.0.1<\/h4>\n\n<p><em>Release Date - 29 May 2020<\/em><\/p>\n\n<ul>\n<li>Added native sidebar widget<\/li>\n<li>Added new bar style<\/li>\n<li>Update en language source pot file.<\/li>\n<li>Fix results view bug when only numbers or percentage option is selected<\/li>\n<li>Fix some php notices<\/li>\n<li>Fix css flex alignment<\/li>\n<li>Fix click event bug<\/li>\n<\/ul>\n\n<h4>1.0<\/h4>\n\n<p><em>Release Date - 27 May 2020<\/em><\/p>\n\n<ul>\n<li>Initial release<\/li>\n<\/ul>","raw_excerpt":"Create polls widgets, blocks and modals based on regular Wordpress and acf (advanced custom fields) functionalities.","jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/tah.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin\/122167","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=122167"}],"author":[{"embeddable":true,"href":"https:\/\/tah.wordpress.org\/plugins\/wp-json\/wporg\/v1\/users\/andremacola"}],"wp:attachment":[{"href":"https:\/\/tah.wordpress.org\/plugins\/wp-json\/wp\/v2\/media?parent=122167"}],"wp:term":[{"taxonomy":"plugin_section","embeddable":true,"href":"https:\/\/tah.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_section?post=122167"},{"taxonomy":"plugin_tags","embeddable":true,"href":"https:\/\/tah.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_tags?post=122167"},{"taxonomy":"plugin_category","embeddable":true,"href":"https:\/\/tah.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_category?post=122167"},{"taxonomy":"plugin_contributors","embeddable":true,"href":"https:\/\/tah.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_contributors?post=122167"},{"taxonomy":"plugin_business_model","embeddable":true,"href":"https:\/\/tah.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_business_model?post=122167"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}