Title: ACF Onyx Poll
Author: andremacola
Published: <strong>26.05.2020</strong>
Last modified: 11.06.2025

---

Поиск плагинов

![](https://ps.w.org/acf-onyx-poll/assets/banner-772x250.png?rev=2314787)

Этот плагин **не тестировался с последними 3 основными выпусками WordPress**. Скорее
всего, он уже не поддерживается и может быть несовместим с текущими версиями WordPress.

![](https://ps.w.org/acf-onyx-poll/assets/icon-256x256.png?rev=2312534)

# ACF Onyx Poll

 Автор: [andremacola](https://profiles.wordpress.org/andremacola/)

[Скачать](https://downloads.wordpress.org/plugin/acf-onyx-poll.1.2.0.zip)

 * [Детали](https://ru.wordpress.org/plugins/acf-onyx-poll/#description)
 * [Отзывы](https://ru.wordpress.org/plugins/acf-onyx-poll/#reviews)
 *  [Установка](https://ru.wordpress.org/plugins/acf-onyx-poll/#installation)
 * [Разработка](https://ru.wordpress.org/plugins/acf-onyx-poll/#developers)

 [Поддержка](https://wordpress.org/support/plugin/acf-onyx-poll/)

## Описание

**_This plugin requires [ADVANCED CUSTOM FIELD PRO](https://www.advancedcustomfields.com/pro/)
installed._**

Plugin for polls based on regular WordPress and acf (advanced custom fields) functionalities
using **WP REST API** and **_Javascript_** methods.

The main goal of ACF Onyx Poll is to be **totally free, lightweight and simple**.
No fancy, colorful and polluted options or donate screens.

This plugin is based on [Twitter](https://twitter.com) poll cards style.

#### Features

✔ **Gutemberg Block** with live preview
 ✔ Include poll with a shortcode (ommit 
the ID to get the latest poll) `[onyx-poll id=XX class="left|right|full"]` ✔ One
click to vote ✔ Works with cache plugins ✔ Multiple polls per page ✔ Support for
images ✔ Native widget for sidebar ✔ Multiple style options `[onyx-poll class="twitter
|standard"]` ✔ Show poll in a modal ✔ Show poll results on widget after expired 
✔ Highlight choosed choice in results area ✔ Limit vote by device or time ✔ Poll
activation/expiration schedule ✔ Results in percentage, numbers or both ✔ Show/Hide
results ✔ Customize css with css variables ✔ Disable all plugin CSS and use your
own ✔ Custom columns on WordPress data table admin area ✔ Translations support

#### Observations

 * This plugin does not support Internet Explorer Browser. One of the goals of this
   plugin is to be js/css lightweight and jQuery free.
 * ACF Onyx Poll [register fields via php](https://www.advancedcustomfields.com/resources/register-fields-via-php/)
   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.
 * To enable a better/faster **CRON** you need to manually set your host cronjob
   to get _https://domain.tld/wp-json/onyx/polls/cron_ endpoint or disable WP-Cron`
   define('DISABLE_WP_CRON', true);` inside your wp-config and manually create the
   cron in your host/server
    - **Option 1**: To run every hour set the cron: 
       `0 * * * * wget -q -O - https://
      domain.tld/wp-json/onyx/polls/cron > /dev/null 2>&1`
    - **Option 2**: if you disable the default WP-Cron: 
       `0 * * * * wget -q -O -
      https://domain.com/wp-cron.php?doing_wp_cron > /dev/null 2>&1`

## Скриншоты

[⌊Admin List Screen.⌉⌊Admin List Screen.⌉[

Admin List Screen.

[⌊Creating a poll.⌉⌊Creating a poll.⌉[

Creating a poll.

[⌊Example of poll widget/modal⌉⌊Example of poll widget/modal⌉[

Example of poll widget/modal

## Установка

From your WordPress dashboard

 1. **Visit** Plugins > Add New
 2. **Search** for «ACF Onyx Poll»
 3. **Activate** ACF Onyx Poll from your Plugins page
 4. **Click** on the new menu item «Polls» and create your first Poll!

## Часто задаваемые вопросы

### Do I need ACF PRO Installed?

Yes, Advanced Custom Fields PRO is mandatory

### How to add a poll to a post?

 * If Gutenberg is active, you can use the **ACF Onyx Poll Block** with live preview
 * Or..use the shortcode `[onyx-poll]` to get the latest poll
 * To add a specific poll, assign the option **ID** with the requested poll to the
   shortcode: `[onyx-poll id=XX]`
 * You can align the poll container with the option **class** in the shortcode: `[
   onyx-poll class=left]`. Available options are `left, right, full`
 * Is it possible to combine style and aligment. Ex: `[onyx-poll class="standard
   left"]`

### How to add a poll to a sidebar?

 * To include a **widget**, your theme need to support it. Go to Appereance > Widgets
   and select **Poll** widget from _ACF Onyx Poll_

### Is it possible to use my own CSS?

Yes, go to the settings poll menu. You can do some customization by overriding some
CSS variables inside your css file.

    ```
    .onyx-poll {
        --pollWidgetWidth: 400px;
        --borderColor: #dbe9f5;
        --boxShadow: 0 4px 12px 6px rgba(31,70,88,0.04);
        --modalBorderRadius: 4px;
        --questionColor: #333;
        --choiceColor: #333;
        --buttonColor: #333;
        --choiceHoverBG: #f5f5f5;
        --choiceBarColor: #e0e0e0;
        --choiceBorderRadius: 100px;
        --closeBorderRadius: 100px;
        --loaderBorderColor: rgb(209, 226, 240);
        --loaderBG: #a3caec;
    }
    ```

### What kind of logs and user data this plugin saves in database?

At the database side, ACF Onyx Poll uses the default ACF/Wordpress structure to 
store data (the meta fields). Nothing to worry about here.

For privacy, ACF Onyx Poll **does not store** any user data like ip address, usernames
etc…

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 `onyx_poll_limit_XX, onyx_poll_modal
and onyx_poll_choice_XX`.

### What about browsers support?

All modern browsers will be fine: Chrome, Firefox, Safari and Microsoft Edge (legacy
and chromium based).

This plugin will not work with any Internet Explorer version.

## Отзывы

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

### 󠀁[Finally a clean well-designed WordPress poll plugin](https://wordpress.org/support/topic/finally-a-clean-well-designed-poll-plugin/)󠁿

 [JanPaul999](https://profiles.wordpress.org/janpaul999/) 21.10.2023

The concept of polls is so simple, yet many WP poll plugins completely fail at this
in my opinion, over complicating things, bugs, bad designs, it's all over the place
but generally quite bad. This plugin however does polls well. It's simple with a
clean design. No bloat or bugginess. It just works and does the job well.

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

### 󠀁[Works great.](https://wordpress.org/support/topic/works-great-8190/)󠁿

 [Stephen Osunwale](https://profiles.wordpress.org/hostephen/) 26.03.2022

Nice and simple. Works great — I just hope it's not abandoned.

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

### 󠀁[Awesome](https://wordpress.org/support/topic/awesome-8626/)󠁿

 [shermangeni](https://profiles.wordpress.org/shermangeni/) 03.03.2021

Works really nice and simple of use !!

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

### 󠀁[Great plugin](https://wordpress.org/support/topic/great-plugin-26952/)󠁿

 [photosjob](https://profiles.wordpress.org/photosjob/) 10.07.2020

Very nice plugin for creating polls (making use of ACF PRO). Adding new polls is
a breeze and with widgets and shortcodes they are embedded where ever you want.

 [ Посмотреть все 4 отзыва ](https://wordpress.org/support/plugin/acf-onyx-poll/reviews/)

## Участники и разработчики

«ACF Onyx Poll» — проект с открытым исходным кодом. В развитие плагина внесли свой
вклад следующие участники:

Участники

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

«ACF Onyx Poll» переведён на 1 язык. Благодарим [переводчиков](https://translate.wordpress.org/projects/wp-plugins/acf-onyx-poll/contributors)
за их работу.

[Перевести «ACF Onyx Poll» на ваш язык.](https://translate.wordpress.org/projects/wp-plugins/acf-onyx-poll)

### Заинтересованы в разработке?

[Посмотрите код](https://plugins.trac.wordpress.org/browser/acf-onyx-poll/), проверьте
[SVN репозиторий](https://plugins.svn.wordpress.org/acf-onyx-poll/), или подпишитесь
на [журнал разработки](https://plugins.trac.wordpress.org/log/acf-onyx-poll/) по
[RSS](https://plugins.trac.wordpress.org/log/acf-onyx-poll/?limit=100&mode=stop_on_copy&format=rss).

## Журнал изменений

#### 1.2.0

_Release Date — 11 Jun 2025_

 * Fixed: Sanitize shortcode attributes to prevent Stored XSS

#### 1.1.9

_Release Date — 20 Abr 2025_

 * Fixed: WordPress textdomain translation notices

#### 1.1.8

_Release Date — 28 Jul 2024_

 * Fixed: PHP 8.2 Deprecated dynamic property warnings

#### 1.1.7

_Release Date — 26 Jul 2024_

 * TESTED: WordPress up to 6.6.1

#### 1.1.6

_Release Date — 29 Set 2023_

 * TESTED: WordPress up to 6.3.1

#### 1.1.5

_Release Date — 20 Jul 2021_

 * TESTED: WordPress up to 5.8
 * ADDED: Now is possible to change the poll image size in options menu
 * FIXED: Label for singular votes, thanks to @Dathix. See more in: https://github.
   com/andremacola/acf-onyx-poll/pull/13

#### 1.1.4

_Release Date — 13 Jan 2021_

 * 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
 * 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

Thanks to:
 — @rampantprint (on github) — @bwiebeck (on github)

#### 1.1.3

_Release Date — 21 Set 2020_

 * IMPROVEMENT: Using ACF PRO as MU Plugin is now possible.

#### 1.1.2

_Release Date — 11 Aug 2020_

 * TESTED: WordPress 5.5
 * FIXED: Rest API method permission_callback typo

#### 1.1.1

_Release Date — 30 May 2020_

 * HOTFIX: Some filters were causing fatal errors in some themes and conflicting
   with certain plugins

#### 1.1.0

_Release Date — 30 May 2020_

 * NEW Gutenberg Onyx Poll Block with live preview (no more shortcodes :))
 * Shortcode is now available to copy on the pool table list
 * Fix some php notices (again :))
 * CSS adjustments
 * JS adjustments
 * Languages updates

#### 1.0.1

_Release Date — 29 May 2020_

 * Added native sidebar widget
 * Added new bar style
 * Update en language source pot file.
 * Fix results view bug when only numbers or percentage option is selected
 * Fix some php notices
 * Fix css flex alignment
 * Fix click event bug

#### 1.0

_Release Date — 27 May 2020_

 * Initial release

## Мета

 *  Версия **1.2.0**
 *  Обновление: **1 год назад**
 *  Активных установок: **70+**
 *  Версия WordPress ** 4.7 или выше **
 *  Совместим вплоть до: **6.8.11**
 *  Версия PHP ** 7.0 или выше **
 *  Языки
 * [Dutch](https://nl.wordpress.org/plugins/acf-onyx-poll/) и [English (US)](https://wordpress.org/plugins/acf-onyx-poll/).
 *  [Перевести на ваш язык](https://translate.wordpress.org/projects/wp-plugins/acf-onyx-poll)
 * Метки:
 * [acf](https://ru.wordpress.org/plugins/tags/acf/)[aop](https://ru.wordpress.org/plugins/tags/aop/)
   [poll](https://ru.wordpress.org/plugins/tags/poll/)[polls](https://ru.wordpress.org/plugins/tags/polls/)
 *  [Дополнительно](https://ru.wordpress.org/plugins/acf-onyx-poll/advanced/)

## Оценки

 5 из 5 звёзд.

 *  [  4 5-звездный отзыв     ](https://wordpress.org/support/plugin/acf-onyx-poll/reviews/?filter=5)
 *  [  0 4-звездный отзыв     ](https://wordpress.org/support/plugin/acf-onyx-poll/reviews/?filter=4)
 *  [  0 3-звездный отзыв     ](https://wordpress.org/support/plugin/acf-onyx-poll/reviews/?filter=3)
 *  [  0 2-звездный отзыв     ](https://wordpress.org/support/plugin/acf-onyx-poll/reviews/?filter=2)
 *  [  0 1-звездный отзыв     ](https://wordpress.org/support/plugin/acf-onyx-poll/reviews/?filter=1)

[Ваш отзыв](https://wordpress.org/support/plugin/acf-onyx-poll/reviews/#new-post)

[Посмотреть всеотзывы](https://wordpress.org/support/plugin/acf-onyx-poll/reviews/)

## Участники

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

## Поддержка

Есть что сказать? Нужна помощь?

 [Перейти в форум поддержки](https://wordpress.org/support/plugin/acf-onyx-poll/)