Перейти до вмісту
themeforge
UA
Почати безплатно
Меню
Основні атрибути

Почніть із завдання

Ці 40 карток охоплюють типовий сайт: що куди ставити, що клієнт побачить в адмінці й які помилки ловить збирання. Нижче — усі атрибути.

Або почніть із цілої секції: перший екран, запитання, тарифи, шапка →

373 атрибутів

Довільні поля

Поля (fld-, opt-, tax-)

Префікси за областю застосування

Один тип поля можна застосовувати до 4 різних сутностей. Змінюється лише префікс — синтаксис значення і поведінка ідентичні.

fld-*Поле запису

значення належить конкретному запису (post, page, CPT)

fld-text="field_name"Альтернатива: f_text="field_name"
opt-*Опції

спільний ресурс для всього сайту — логотип, контакти, фавікон

opt-text="field_name"Альтернатива: o_text="field_name"
tax-*Поле таксономії

значення належить терміну (категорії, тегу, custom taxonomy)

tax-text="field_name"Альтернатива: t_text="field_name"

Кожен тип поля працює в кожній області — і як прямий scoped-атрибут (fld-text / opt-text / tax-text; альтернативний запис f_text / o_text / t_text), і через розміщення звичайного fld-* поля всередині контейнера області (opt-group / tax-group / fld-loop), де воно автоматично потрапляє в цю область.

fld-alt="field_name"Альтернатива: f_alt="field_name"
text

Підставляє значення в HTML-атрибут alt тега img — опис зображення для accessibility та SEO. Підтримує Polylang/WPML.

img (alt)
ОбластьАтрибутАльтернатива
Поле записуfld-altf_alt
Опціїopt-alto_alt
Поле таксономіїtax-altt_alt
fld-anchor="field_name"Альтернатива: f_anchor="field_name"
text

Якірне посилання — поле приймає ідентифікатор без знака #; генератор автоматично додає решітку при підстановці в href.

a (href), any (#id)
ОбластьАтрибутАльтернатива
Поле записуfld-anchorf_anchor
Опціїopt-anchoro_anchor
Поле таксономіїtax-anchort_anchor
fld-area="field_name"Альтернатива: f_area="field_name"
textarea

Багаторядкове поле простого тексту без візуального редактора: розриви рядків з адмінки переходять на сайт. Для вступних абзаців, адрес, коротких описів.

div (textarea alias)
ОбластьАтрибутАльтернатива
Поле записуfld-areaf_area
Опціїopt-areao_area
Поле таксономіїtax-areat_area
fld-auto-id="field_name"Альтернатива: f_auto_id="field_name"
text

Генерує унікальний HTML id зі значення зв'язаного ACF/SCF-поля. Корисно, коли репітери рендеряться поспіль і потрібні стабільні id для якорів і CSS.

any (auto id)
ОбластьАтрибутАльтернатива
Поле записуfld-auto-idf_auto_id
Опціїopt-auto-ido_auto_id
Поле таксономіїtax-auto-idt_auto_id
fld-bg-color="field_name"Альтернатива: f_bg_color="field_name"
color_picker

Колір фону — записує значення в inline-стиль background-color. В адмінці color-picker.

div (background-color)
ОбластьАтрибутАльтернатива
Поле записуfld-bg-colorf_bg_color
Опціїopt-bg-coloro_bg_color
Поле таксономіїtax-bg-colort_bg_color
fld-bg-image="field_name"Альтернатива: f_bg_image="field_name"
image

Фонове зображення блоку — генератор пише URL в inline-стиль background-image. Якщо у блоку задані фоновий колір або градієнт, фон-картинка може не відобразитися браузером.

div (background-image)
ОбластьАтрибутАльтернатива
Поле записуfld-bg-imagef_bg_image
Опціїopt-bg-imageo_bg_image
Поле таксономіїtax-bg-imaget_bg_image
fld-bg-video="field_name"Альтернатива: f_bg_video="field_name"
group

Фонове HTML5-відео — група з трьох полів: постер-плейсхолдер, mp4 і webm. Генератор підключає <video> з autoplay/muted/loop у фон блоку.

div (video background)
ОбластьАтрибутАльтернатива
Поле записуfld-bg-videof_bg_video
Опціїopt-bg-videoo_bg_video
Поле таксономіїtax-bg-videot_bg_video
fld-checkbox="field_name"Альтернатива: f_checkbox="field_name"
text

Зв'язує state input-чекбокса з булевим ACF/SCF полем. Генератор підставляє атрибут checked, коли значення true.

input (checked)
ОбластьАтрибутАльтернатива
Поле записуfld-checkboxf_checkbox
Опціїopt-checkboxo_checkbox
Поле таксономіїtax-checkboxt_checkbox
fld-checkbox-custom="field_name"Альтернатива: f_checkbox_custom="field_name"
text

Кастомний чекбокс всередині fld-loop — кожному рядку репітера присвоюється унікальний name, щоб submit форми повернув масив значень.

input (custom checked)
ОбластьАтрибутАльтернатива
Поле записуfld-checkbox-customf_checkbox_custom
Опціїopt-checkbox-customo_checkbox_custom
Поле таксономіїtax-checkbox-customt_checkbox_custom
fld-class="field_name"Альтернатива: f_class="field_name"
text

Підставляє значення в HTML-атрибут class. Зручно для умовної стилізації: в адмінці обирається рядок (наприклад is-featured), на фронті перетворюється на клас блоку.

any (CSS class)
ОбластьАтрибутАльтернатива
Поле записуfld-classf_class
Опціїopt-classo_class
Поле таксономіїtax-classt_class
fld-code="field_name"Альтернатива: f_code="field_name"
acf_code_field

Довільний код-сніпет — вміст поля виводиться напряму без екранування (raw output). Використовуйте для піксельних скриптів, iframe зовнішніх сервісів, інлайн-стилів.

any (data attr)
ОбластьАтрибутАльтернатива
Поле записуfld-codef_code
Опціїopt-codeo_code
Поле таксономіїtax-codet_code
fld-color="field_name"Альтернатива: f_color="field_name"
color_picker

Колір тексту — записує значення в inline-стиль color на поточному елементі. В адмінці color-picker з альфа-каналом.

span, div
ОбластьАтрибутАльтернатива
Поле записуfld-colorf_color
Опціїopt-coloro_color
Поле таксономіїtax-colort_color
fld-custom="field_name"Альтернатива: f_custom="field_name"
text

Довільний користувацький атрибут: підключає будь-який HTML-атрибут елемента до адмінки як редаговане поле. Формат значення — "ім'я-атрибута:Підпис в адмінці". Наприклад, щоб зробити редагованим src або href: fld-custom="src:Image link" або fld-custom="href:Link field name". Якщо на одному елементі потрібно кілька таких атрибутів — використовуйте пронумеровані варіанти fld-custom1...fld-custom20.

any (custom PHP)
ОбластьАтрибутАльтернатива
Поле записуfld-customf_custom
Опціїopt-customo_custom
Поле таксономіїtax-customt_custom
fld-editor="field_name"Альтернатива: f_editor="field_name"
wysiwyg

Візуальний редактор (TinyMCE) для тексту з оформленням: заголовки, списки, посилання, зображення. Ставте на div: WordPress сам обгортає текст в абзаци.

div (wysiwyg alias)
ОбластьАтрибутАльтернатива
Поле записуfld-editorf_editor
Опціїopt-editoro_editor
Поле таксономіїtax-editort_editor
fld-email-link="field_name"Альтернатива: f_email_link="field_name"
text

Email-посилання одним атрибутом — генератор сам зробить href="mailto:..." і підставить адресу з поля як видимий текст всередині <a>.

a (mailto: + text)
ОбластьАтрибутАльтернатива
Поле записуfld-email-linkf_email_link
Опціїopt-email-linko_email_link
Поле таксономіїtax-email-linkt_email_link
fld-file="field_name"Альтернатива: f_file="field_name"
file

Довільний файл — PDF, DOCX, ZIP тощо. URL підставляється в href тега <a>. В адмінці стандартний медіа-аплоадер.

a (href)
ОбластьАтрибутАльтернатива
Поле записуfld-filef_file
Опціїopt-fileo_file
Поле таксономіїtax-filet_file
fld-gallery="field_name"Альтернатива: f_gallery="field_name"
gallery

Галерея зображень — масив зображень з порядком drag-and-drop. На фронті рендериться репітером картинок.

wrapper div (image list)
ОбластьАтрибутАльтернатива
Поле записуfld-galleryf_gallery
Опціїopt-galleryo_gallery
Поле таксономіїtax-galleryt_gallery
fld-gmap="field_name"Альтернатива: f_gmap="field_name"
google_map

Поле Google Maps — координати, адреса й zoom в одному пікері з інтерактивною картою. Потрібен Google Maps API key у налаштуваннях теми.

div (Google Map)
ОбластьАтрибутАльтернатива
Поле записуfld-gmapf_gmap
Опціїopt-gmapo_gmap
Поле таксономіїtax-gmapt_gmap
fld-gmap-addr="field_name"Альтернатива: f_gmap_addr="field_name"
text

Текстове представлення адреси з Google Map — бере компонент address з об'єкта gmap. Зручно для підпису під картою.

span, div (address)
ОбластьАтрибутАльтернатива
Поле записуfld-gmap-addrf_gmap_addr
Опціїopt-gmap-addro_gmap_addr
Поле таксономіїtax-gmap-addrt_gmap_addr
fld-group="field_name"Альтернатива: f_group="field_name"
group

Контейнер вкладених полів — всі fld-* всередині стають під-полями групи в адмінці. Не має власного значення, тільки структурує панель.

wrapper div
ОбластьАтрибутАльтернатива
Поле записуfld-groupf_group
Опціїopt-groupo_group
Поле таксономіїtax-groupt_group
fld-hide="field_name"Альтернатива: f_hide="field_name"
true_false

Умовне приховування блоку — дзеркало show з оберненою логікою. true в адмінці прибирає блок з верстки.

wrapper div (conditional)
ОбластьАтрибутАльтернатива
Поле записуfld-hidef_hide
Опціїopt-hideo_hide
Поле таксономіїtax-hidet_hide
fld-id="field_name"Альтернатива: f_id="field_name"
text

Підставляє значення в HTML-атрибут id поточного елемента. Якщо потрібна автогенерація за вмістом — дивись auto_id або slug_id.

any (id)
ОбластьАтрибутАльтернатива
Поле записуfld-idf_id
Опціїopt-ido_id
Поле таксономіїtax-idt_id
fld-image="field_name"Альтернатива: f_image="field_name"
image

Поле зображення. На <img> збирання бере src з поля й прибирає srcset і sizes, щоб показувалося зображення з адмінки; alt і class лишаються як у верстці.

img (src)
ОбластьАтрибутАльтернатива
Поле записуfld-imagef_image
Опціїopt-imageo_image
Поле таксономіїtax-imaget_image
fld-image-gallery="field_name"Альтернатива: f_image_gallery="field_name"
gallery

Галерея без авто-обгортки в лайтбокс — синонім gallery, коли модальне вікно підключається власним JS-компонентом.

wrapper div (gallery alias)
ОбластьАтрибутАльтернатива
Поле записуfld-image-galleryf_image_gallery
Опціїopt-image-galleryo_image_gallery
Поле таксономіїtax-image-galleryt_image_gallery
fld-layout="field_name"Альтернатива: f_layout="field_name"
text

Один шаблон блоку всередині fld-layouts — містить елементи, які рендеряться для конкретного типу лейаута.

section div (layout item)
ОбластьАтрибутАльтернатива
Поле записуfld-layoutf_layout
Опціїopt-layouto_layout
Поле таксономіїtax-layoutt_layout
fld-layouts="field_name"Альтернатива: f_layouts="field_name"
flexible_content

Flexible Content — користувач обирає в адмінці різні типи блоків і розташовує їх у довільному порядку. Кожен тип — це окремий fld-layout зі своєю версткою.

wrapper div (flexible content)
ОбластьАтрибутАльтернатива
Поле записуfld-layoutsf_layouts
Опціїopt-layoutso_layouts
Поле таксономіїtax-layoutst_layouts
fld-lbox-gallery="field_name"Альтернатива: f_lbox_gallery="field_name"
gallery

Галерея в лайтбоксі — кожна картинка автоматично обгортається в <a> з lightbox-атрибутом для віджета.

wrapper div (lightbox gallery)
ОбластьАтрибутАльтернатива
Поле записуfld-lbox-galleryf_lbox_gallery
Опціїopt-lbox-galleryo_lbox_gallery
Поле таксономіїtax-lbox-galleryt_lbox_gallery
fld-lbox-image="field_name"Альтернатива: f_lbox_image="field_name"
image

Зображення в лайтбоксі — генератор обгортає <img> в <a href> на повний розмір з атрибутами для модального перегляду (Fancybox, GLightbox, нативний).

a (lightbox; group → Group name: loop_id/parent_id/post_id)
ОбластьАтрибутАльтернатива
Поле записуfld-lbox-imagef_lbox_image
Опціїopt-lbox-imageo_lbox_image
Поле таксономіїtax-lbox-imaget_lbox_image
fld-lbox-video="field_name"Альтернатива: f_lbox_video="field_name"
text

Відео в лайтбоксі — поле приймає URL (YouTube, Vimeo, MP4), на фронті перетворюється на lightbox-посилання з ембедом по кліку.

a (lightbox; group → Group name: loop_id/parent_id/post_id)
ОбластьАтрибутАльтернатива
Поле записуfld-lbox-videof_lbox_video
Опціїopt-lbox-videoo_lbox_video
Поле таксономіїtax-lbox-videot_lbox_video
fld-link="field_name"Альтернатива: f_link="field_name"
text

Універсальне посилання як текстове поле — користувач вводить URL, генератор пише його в href. Без вибору запису і без валідації схеми.

a (href)
ОбластьАтрибутАльтернатива
Поле записуfld-linkf_link
Опціїopt-linko_link
Поле таксономіїtax-linkt_link
fld-list="field_name"Альтернатива: f_list="field_name"
textarea

Список значень через textarea — кожен рядок вводу стає елементом масиву. Підходить для переваг, тегів, простих перелічень без окремого репітера.

ul/ol (list items)
ОбластьАтрибутАльтернатива
Поле записуfld-listf_list
Опціїopt-listo_list
Поле таксономіїtax-listt_list
fld-loop="field_name"Альтернатива: f_loop="field_name"
repeater

Репітер — користувач додає довільну кількість рядків, у кожному свій набір полів. Усередині fld-loop використовуйте звичайні fld-* атрибути; парсер сам зрозуміє, що вони належать рядку репітера. Аналог Repeater в ACF / Complex у Secure Custom Fields.

wrapper div (repeater)
ОбластьАтрибутАльтернатива
Поле записуfld-loopf_loop
Опціїopt-loopo_loop
Поле таксономіїtax-loopt_loop
fld-lottie="field_name"Альтернатива: f_lottie="field_name"
text

Lottie-анімація — поле приймає URL до JSON-файлу. На фронті ініціалізує lottie-player на поточному елементі.

div (lottie-player)
ОбластьАтрибутАльтернатива
Поле записуfld-lottief_lottie
Опціїopt-lottieo_lottie
Поле таксономіїtax-lottiet_lottie
fld-page-link="field_name"Альтернатива: f_page_link="field_name"
page_link

Посилання на сторінку WP — в адмінці випадаючий список існуючих сторінок, записів, CPT. Повертає permalink, враховує локаль Polylang/WPML.

a (link to page)
ОбластьАтрибутАльтернатива
Поле записуfld-page-linkf_page_link
Опціїopt-page-linko_page_link
Поле таксономіїtax-page-linkt_page_link
fld-phone-link="field_name"Альтернатива: f_phone_link="field_name"
text

Телефонне посилання одним атрибутом — генератор робить href="tel:..." і підставляє номер з поля як текст всередині <a>.

a (tel: + text)
ОбластьАтрибутАльтернатива
Поле записуfld-phone-linkf_phone_link
Опціїopt-phone-linko_phone_link
Поле таксономіїtax-phone-linkt_phone_link
fld-placeholder="field_name"Альтернатива: f_placeholder="field_name"
text

Підставляє значення в атрибут placeholder елемента input або textarea — текст-підказка всередині порожнього поля форми.

input (placeholder)
ОбластьАтрибутАльтернатива
Поле записуfld-placeholderf_placeholder
Опціїopt-placeholdero_placeholder
Поле таксономіїtax-placeholdert_placeholder
fld-posts="field_name"Альтернатива: f_posts="field_name"
relationship

Цикл по кількох вручну обраних записах — на фронті рендериться як WP_Query, порядок зберігається.

wrapper div (post list)
ОбластьАтрибутАльтернатива
Поле записуfld-postsf_posts
Опціїopt-postso_posts
Поле таксономіїtax-postst_posts
fld-radio="field_name"Альтернатива: f_radio="field_name"
radio

Радіо-кнопки — вибір одного варіанта зі списку. Конфіг значень в адмін-панелі.

span, div
ОбластьАтрибутАльтернатива
Поле записуfld-radiof_radio
Опціїopt-radioo_radio
Поле таксономіїtax-radiot_radio
fld-select="field_name"Альтернатива: f_select="field_name"
select

Випадаючий список значень — пари (label, value) налаштовуються в конфігу панелі теми через під-репітер.

span, div
ОбластьАтрибутАльтернатива
Поле записуfld-selectf_select
Опціїopt-selecto_select
Поле таксономіїtax-selectt_select
fld-shortcode="field_name"Альтернатива: f_shortcode="field_name"
text

Шорткод як значення поля — вміст прогоняється через do_shortcode перед виводом. Будь-який WP-шорткод у будь-якому місці теми.

div
ОбластьАтрибутАльтернатива
Поле записуfld-shortcodef_shortcode
Опціїopt-shortcodeo_shortcode
Поле таксономіїtax-shortcodet_shortcode
fld-show="field_name"Альтернатива: f_show="field_name"
true_false

Умовне відображення блоку — true в адмінці залишає блок на фронті, false прибирає (через CSS display:none чи PHP-умову).

wrapper div (conditional)
ОбластьАтрибутАльтернатива
Поле записуfld-showf_show
Опціїopt-showo_show
Поле таксономіїtax-showt_show
fld-slug-id="field_name"Альтернатива: f_slug_id="field_name"
text

ID на основі тексту з транслітерацією — генератор бере значення зв'язаного поля і перетворює у slug-формат (українські → латиниця, пробіли → дефіс, нижній регістр).

any (slug-based id)
ОбластьАтрибутАльтернатива
Поле записуfld-slug-idf_slug_id
Опціїopt-slug-ido_slug_id
Поле таксономіїtax-slug-idt_slug_id
fld-style="field_name"Альтернатива: f_style="field_name"
text

Довільний inline-CSS на поточному елементі — записує значення в атрибут style. Використовуйте економно: переважає CSS з таблиць стилів.

any (style attr)
ОбластьАтрибутАльтернатива
Поле записуfld-stylef_style
Опціїopt-styleo_style
Поле таксономіїtax-stylet_style
fld-terms="field_name"Альтернатива: f_terms="field_name"
taxonomy

Цикл по обраних термінах — масив з taxonomy-поля; зручно виводити списком міток або посилань.

wrapper div (term list)
ОбластьАтрибутАльтернатива
Поле записуfld-termsf_terms
Опціїopt-termso_terms
Поле таксономіїtax-termst_terms
fld-text="field_name"Альтернатива: f_text="field_name"
text

Однорядкове текстове поле, найчастіший тип. Замінює весь вміст елемента значенням поля; текст із HTML стає першим значенням поля під час «Завантажити дані», а не запасним варіантом. Перекладається через Polylang/WPML.

div, span, p, h1-h6
ОбластьАтрибутАльтернатива
Поле записуfld-textf_text
Опціїopt-texto_text
Поле таксономіїtax-textt_text
fld-title="field_name"Альтернатива: f_title="field_name"
text

Підставляє значення в HTML-атрибут title — спливаюча підказка при наведенні. Найчастіше на посиланнях та зображеннях.

img (alt/title), a (title)
ОбластьАтрибутАльтернатива
Поле записуfld-titlef_title
Опціїopt-titleo_title
Поле таксономіїtax-titlet_title
fld-value="field_name"Альтернатива: f_value="field_name"
text

Підставляє значення в атрибут value тегів input/select — наприклад, щоб дефолтне значення інпуту редагувалося з адмінки.

input (value)
ОбластьАтрибутАльтернатива
Поле записуfld-valuef_value
Опціїopt-valueo_value
Поле таксономіїtax-valuet_value
fld-video="field_name"Альтернатива: f_video="field_name"
text

Відео за URL — поставте на відео-блок; в адмінці зʼявиться текстове поле для будь-якого посилання на відео (YouTube, Vimeo, …); на фронті відтворюється вбудованим плеєром.

div (video block / w-video)
ОбластьАтрибутАльтернатива
Поле записуfld-videof_video
Опціїopt-videoo_video
Поле таксономіїtax-videot_video
fld-youtube="field_name"Альтернатива: f_youtube="field_name"
text

YouTube-відео за URL — генератор підставляє iframe з ембедом у поточний елемент.

div (embed)
ОбластьАтрибутАльтернатива
Поле записуfld-youtubef_youtube
Опціїopt-youtubeo_youtube
Поле таксономіїtax-youtubet_youtube

Група полів (Meta)

Creates an ACF/SCF field group from the field attributes inside the element it sits on. Place it on the element that holds the fields, most often body; the value is the group name in wp-admin (alternative: wp_meta). Without wp-fields-group on a page, no field group is created for that template automatically (you can still add one by hand in the ACF/SCF settings). This attribute does not create template files — they are generated from the Webflow pages separately

wp-fields-group="Group name"Альтернатива: wp_meta

Створює групу полів ACF/SCF з атрибутів-полів усередині елемента, на якому стоїть. Ставиться на елемент із полями, найчастіше — на body; значення — назва групи в адмінці (альтернатива: wp_meta). Якщо на сторінці немає wp-fields-group, групи полів для цього шаблону автоматично не створюються (їх можна додати вручну в налаштуваннях ACF/SCF). Файли шаблонів цей атрибут не створює — вони генеруються зі сторінок Webflow окремо.

Група прив'язується до шаблону, де стоять поля: page → шаблон поточної сторінки (post_template), single-{cpt} → тип запису {cpt}; поля опцій — через розміщення на сторінці theme-options; поля термів (таксономій) — до архівного шаблону / таксономії. На одній сторінці може бути кілька груп (кілька wp-fields-group з різними полями всередині), але не розміщуйте однакові поля в різних групах одного шаблону — в адмінці вони продублюються і можливі баги під час заповнення.

Показати редактор (wp-show-editor)

Keep the WordPress text editor on a page with custom fields. A ThemeForge attribute (no alternative spelling)

wp-show-editor

Залишити візуальний редактор WP видимим на сторінках з прив'язкою до шаблона через wp-fields-group. За замовчуванням редактор прихований — цей атрибут повертає його.

Place it on body. By default the editor is hidden on pages with wp-fields-group; with this attribute it stays visible.

Опис поля

Adds a hint (description) under the field in wp-admin. Works at any nesting level.

instructions="Hint text"

Adds a help text (description) under a field’s label in the WordPress admin. Place it on the same element that carries a field attribute (fld-text, opt-link, a group or repeater container, …) and editors see your guidance right where they fill the field in.

Works at any nesting level — leaf fields, group/repeater rows, and the containers themselves. An instructions on a disabled or mistyped attribute is ignored, since no field is created for it.

Керування відображенням

Controls how the element is displayed in the ACF admin

display="table"

Відображати fld-looper як табличний layout в адмінці — компактна сітка рядків. Зручно для коротких полів (назва + ціна + кількість).

display="block"

Кожен рядок репітера — окрема картка-блок з вертикальним набором полів. Default для більшості типів.

display="row"

Поля всередині одного рядка йдуть горизонтально (флекс) — для коротких пар «label + value» в адмінці.

Загальні атрибути

Умовне відображення

Conditional output by a WordPress function

wp-if="condition()"Альтернатива: wp_if

Умовний вивід блоку за WordPress-умовою: значення — виклик функції (або вираз), що повертає true/false. Якщо хибно — блок узагалі не потрапляє у вивід сторінки. Можна вказати і просто ім'я поля: wp-if="phone" покаже блок, лише якщо поле phone заповнене (еквівалент get_field('phone')). Типові значення — у картках-прикладах нижче; довільні PHP-вирази теж допустимі.

has_post_thumbnail()Перевірка наявності мініатюри запису (featured image).
is_user_logged_in()Перевірка авторизації користувача.
is_front_page()Поточна сторінка — головна сайту.
is_single()Поточна сторінка — одиничний запис (single).
is_page()Поточна сторінка — статична (page).
is_category()Поточна сторінка — архів категорії.
is_archive()Поточна сторінка — будь-який архів (категорія, тег, дата, автор).
is_search()Поточна сторінка — результати пошуку.
is_404()Поточна сторінка — 404 (not found).

Встановити PHP-змінну (wp-set)

Puts a given value into an HTML attribute of the element

wp-set="attribute:value" / wp-set="a1:v1; a2:v2" (several pairs separated by ;)Альтернатива: wp_set

Universal HTML attribute setter. Format: `wp-set="name:value"`. The wp-set attribute itself is removed, and the «name:value» pair is added as a regular HTML attribute on the same element. Multiple pairs can be specified with `;`: `wp-set="n1:v1; n2:v2"`. Examples: `wp-set="type:date"` → `type="date"`; Schema.org microdata `wp-set="itemscope: ; itemtype: https://schema.org/BreadcrumbList"` → `itemscope="" itemtype="https://schema.org/BreadcrumbList"`. If the value needs to be computed via PHP, use wp-set-php instead.

Removes wp-set itself and adds the given names/values as ordinary HTML attributes on the same element. Several pairs are separated with `;`. Example: `wp-set="type:date"` → `type="date"`. Schema.org markup: `wp-set="itemscope: ; itemtype: https://schema.org/BreadcrumbList"` → `itemscope="" itemtype="https://schema.org/BreadcrumbList"`. If the value must be computed in PHP, use wp-set-php.

PHP-вираз (wp-php)

An arbitrary PHP expression

wp-php="echo get_field(...)"Альтернатива: wp_php

Виконує довільний PHP-код на місці елемента — генератор обгортає значення в <?php ... ?>. Максимум свободи: змінні, цикли, виклики функцій. Для простого виводу значення зручніший php-echo (echo вже мається на увазі), для умовного показу блоку — php-if / wp-if.

Generates <?php echo expression ?> or just the expression. Use sparingly

PHP вивід

Print a PHP expression

php-echo="expression"Альтернатива: php_echo

Виводить результат PHP-виразу як вміст елемента. Слово echo писати не потрібно — воно мається на увазі: php-echo="get_the_title()" виведе заголовок поточного запису. Для коротких безпечних конструкцій; для блоків коду з логікою використовуйте wp-php.

PHP умова

A PHP condition

php-if="condition"Альтернатива: php_if

Умовний рендер: елемент виводиться, лише якщо PHP-вираз у значенні істинний. Наприклад php-if="is_user_logged_in()" покаже блок тільки авторизованим відвідувачам. Пишіть будь-який boolean-вираз; родич wp-if (той орієнтований на готові WordPress-умови).

PHP Injection (Positional)

php-before="php code"Альтернатива: php_before

Inserts raw PHP code immediately BEFORE the element — for setup logic, opening control structures, or variable assignments that wrap the element.

The generator inserts `<?php <code> ?>` right before the element's opening tag. Often paired with php-after for output buffering (capturing the element's HTML and post-processing it). Example: `php-before="ob_start();"` + `php-after="echo strtoupper(ob_get_clean());"` → the whole content of the element is upper-cased.
php-after="php code"Альтернатива: php_after

Inserts raw PHP code immediately AFTER the element — pairs with php-before to close control structures or run teardown logic.

The generator inserts `<?php <code> ?>` right after the element's closing tag. Its pair is php-before. It can also be used alone (for example `<?php wp_reset_postdata(); ?>` after a loop).
php-insert="php code"Альтернатива: php_insert

Inserts PHP code INSIDE the element, replacing its children — the element keeps its tag and attributes but its content becomes the code's output.

Replaces the element's content (its children) with `<?php <code> ?>`. The element's own tags stay. Unlike php-replace, which removes the element itself.
php-replace="php code"Альтернатива: php_replace

Replaces the ENTIRE element (tag included) with the output of the PHP code — use when you need to swap the whole node for dynamic markup.

Removes the element (tags and content) and puts `<?php <code> ?>` in its place. Same behaviour as wp-replace-php.
php-prepend="php code"Альтернатива: php_prepend

Inserts PHP code at the START of the element's content — prepends the code output before the existing children.

Keeps the element and its children and adds `<?php <code> ?>` BEFORE the children. Its pair is php-append. Combines with php-before/php-after (different insertion points); cannot be combined with php-replace.
php-append="php code"Альтернатива: php_append

Inserts PHP code at the END of the element's content — appends the code output after the existing children.

The mirror of php-prepend: adds `<?php <code> ?>` AFTER the element's children.

Templates & Loading

wp-include="file_name" (no extension)Альтернатива: wp_include

Вставляє на це місце інший PHP-файл теми (звичайний include; ім'я без розширення — .php додасться автоматично). Головна відмінність від wp-part: файл wp-include генератор НЕ створює і НЕ перезаписує під час оновлення теми — це ваш власний партіал, ви пишете й підтримуєте його вручну, він переживає оновлення. Прийом: спершу поставте wp-part, щоб генератор один раз вивантажив розмітку елемента у файл, потім змініть атрибут на wp-include — файл перестане перезаписуватися, і його можна доопрацьовувати вручну.

The element's content is replaced with `<?php include("<name>.php"); ?>`. Give the file name without the extension — the generator adds `.php`. The file must exist in the theme root.
wp-part="slug"Альтернатива: wp_part

Виносить елемент в окремий перевикористовуваний файл (template part WordPress) і підключає через get_template_part(). Головна відмінність від wp-include: файл створюється з Webflow-розмітки і ПЕРЕЗАПИСУЄТЬСЯ при кожному оновленні теми — правити його вручну немає сенсу, правте вихідний елемент у Webflow. Зручний як ціль AJAX-оновлення. Зв'язка: wp-part вивантажує файл один раз, після чого атрибут змінюють на wp-include — і далі правлять файл вручну без перезапису.

Like wp-include, but uses the WordPress API `get_template_part()`, so child themes and plugins can override the template. The slug is the file name without the extension, relative to the theme root.
wp-shortcode="[shortcode atr=val]"Альтернатива: wp_shortcode

Executes a WordPress shortcode in place via do_shortcode() — embed plugin output (forms, sliders, WC blocks) anywhere in the layout.

The element's content is replaced with the result of the shortcode run through `do_shortcode()`. The value is the full shortcode string, brackets and parameters included. Handy for Contact Form 7 forms, WooCommerce shortcodes and the like.
wp-load="post_type"Альтернатива: wp_load

Turns the element into a «Load more» button that AJAX-loads the next page of the current query and appends results — infinite-scroll-style pagination.

Place it on an `<a>` or `<button>`. The generator removes wp-load and adds `data-load="<name>"` + `style="display:none;"` (the button appears only when there is a next page). Its pair is wp-load-part, which names the block to load.
wp-rotation="N"Альтернатива: wp_rotation

A grouping counter that splits loop results into groups of N (e.g. columns) — increments per item so you can wrap every N items in a row.

Place it on a loop container (`<div wp="posts">`, `<div wp-query="...">`). Inside the loop `$rotation` cycles through 1..N. Used to group items: with N=4 every 4 items form a new row. Row wrappers open on `if ($rotation === 1)` and close on `if ($rotation === N)`.
wp-template-cpt="post_type"Альтернатива: wp_template_cpt

Binds the template file to a specific custom post type (CPT). Placed on the `<body>` tag. WordPress shows this template in the «Template» dropdown when editing posts of the named CPT. Example: ```html <body wp-template-cpt="product"> ...template content... </body> ``` This template becomes selectable for posts of type `product` (WooCommerce product).

Place it on `<body>`. The generator adds a `/* Template Post Type: <post_type> */` header to the template file, so WordPress offers this template in the «Template» dropdown when editing posts of that type. The attribute itself is removed from body.
wp-sidebar="sidebar_name"Альтернатива: wp_sidebar

Область віджетів (динамічний сайдбар): вміст елемента замінюється на віджети, які адмін поклав у цю область (Вигляд → Віджети). Значення — ім'я області; тема реєструє її автоматично під час генерації. Сюди ж ставляться віджети плагінів — наприклад, фільтр каталогу Premmerce.

Place it on a container. The element's content is replaced with `dynamic_sidebar()` for the given name. Sidebars are registered in the theme's functions.php.

Вивід меню WordPress (wp-menu)

Print a registered WordPress menu

wp-menu="Menu name"Альтернатива: wp_menu

Виводить меню WordPress за назвою (Зовнішній вигляд → Меню). Пункти беруть класи першого посилання; пункти з підпунктами стають випадним списком на два рівні. Випадний список власної верстки — wp-menu-tree.

Шаблони меню (wp-menu-tpl)

Menu item template marker inside wp-menu / wp-menu-tree. Place it on the item template so the parser does not have to guess templates: link — a plain item, drop — an item with a dropdown. A ThemeForge attribute (no alternative spelling).

wp-menu-tpl="link"

Шаблон звичайного пункту меню без вкладених підпунктів — просте посилання. Генератор використовує цей елемент як «leaf» при побудові меню.

wp-menu-tpl="drop"

Шаблон пункту меню з dropdown — усередині має бути мітка wp="menu-children" для вкладеного списку. Генератор рекурсивно підставляє нащадків.

Записи

WordPress Core

Attributes that output standard WordPress fields

wp="post-title"Альтернатива: wp="post_title"

Виводить заголовок поточного запису чи сторінки — те, що введено в поле «Title» в адмінці WP. Враховує поточну локаль Polylang/WPML.

h1, h2, div, span
wp="post-content"Альтернатива: wp="post_content"

Виводить основний контент запису через the_content() — з усіма Gutenberg-блоками, шорткодами, oEmbed-вставками. Має знаходитися всередині The Loop.

div (main content area)
wp="post-excerpt"Альтернатива: wp="post_excerpt"

Уривок запису — короткий опис з поля Excerpt або авто-згенерований з контенту. Зручно для карток в архівах та блозі.

div, p
wp="post-date"Альтернатива: wp="post_date"

Дата публікації запису у форматі теми. Формат налаштовується через WP «Налаштування → Загальні» або фільтр get_the_date.

span, time, div
wp="post-image"Альтернатива: wp="post_image"

Зображення запису на <img>: src береться із запису, srcset і sizes прибираються. Для фону — post-bg-image.

img (src)
wp="post-link"Альтернатива: wp="post_link"

Постійне посилання поточного запису, записується в href. Працює на будь-якому елементі, зазвичай на <a>.

a (href)
wp="post-author"Альтернатива: wp="post_author"

Ім'я автора запису (display name). За замовчуванням автор — користувач, що опублікував запис.

span, div
wp="post-author-link"Альтернатива: wp="post_author_link"

Посилання на сторінку автора запису — пишеться в href тега <a>. Відкриває archive автора.

a (href)
wp="post-tags"Альтернатива: wp="post_tags"

Теги поточного запису через кому. Кожен тег — посилання на свій архів.

div, span
wp="posts"

Стандартний цикл WordPress (The Loop) — на архівних сторінках автоматично перебирає записи. Будь-який контент усередині буде повторено для кожного запису. Ставте ЛИШЕ на архівні шаблони (блог / рубрика / архів CPT / пошук); на сторінці одиночного запису він виведе зайвий список постів.

wrapper div (WP Loop)
wp="pagination"

Номери сторінок для блогу, архівів і пошуку: WP-PageNavi, якщо цей плагін увімкнено, інакше paginate_links() WordPress. Ставиться на порожній елемент.

nav, div
wp="home-url"Альтернатива: wp="home_link"

URL головної сторінки сайту — пишеться в href. На локалізованих версіях веде на корінь поточної локалі.

a (href)
wp="post-title-link"Альтернатива: wp="post_title_link"

Заголовок запису, обгорнутий у посилання на сам запис — обидва значення разом (текст + href). Один атрибут замінює post-title + post-link.

a (href + text)
wp="next-post-link"Альтернатива: wp="next_post_link"

Посилання на наступний запис в архіві — пишеться в href тега <a>. На останньому записі блок прихований.

a (href)
wp="prev-post-link"Альтернатива: wp="prev_post_link"

Посилання на попередній запис в архіві — пишеться в href тега <a>. На першому записі блок прихований.

a (href)
wp="post-bg-image"Альтернатива: wp="post_bg_image"

Мініатюра запису як фонове зображення блоку — URL пишеться в inline-стиль background-image.

div (background-image)
wp="post-lbox-image"Альтернатива: wp="post_lbox_image"

Мініатюра запису як лайтбокс-посилання — <img> обгортається в <a href> з lightbox-атрибутами.

a (lightbox href)
wp="site-name"Альтернатива: wp="site_name"

Синонім bloginfo-name — назва сайту з налаштувань WP.

span, div, h1
wp="site-desc"Альтернатива: wp="site_desc"

Синонім bloginfo-description — слоган сайту з налаштувань WP.

span, p
wp="breadcrumbs"

Хлібні крихти через плагін Breadcrumb NavXT — шлях від головної до поточної сторінки. Потрібен активний плагін.

div, nav
wp="no-results"Альтернатива: wp="no_results"

Контейнер «нічого не знайдено» в архівах і пошуку — генератор покаже його тільки коли результатів немає (керується через JS).

div (empty state)
wp="term-title"Альтернатива: wp="term_title"

Outputs the name of the current taxonomy term — category, tag, or custom taxonomy. Used on taxonomy archives and inside fld-term-query loops. Respects the active Polylang/WPML locale.

wp="term-link"Альтернатива: wp="term_link"

Permalink to the term's archive page — written into the href of an <a>. Multilang-aware.

wp="term-count"Альтернатива: wp="term_count"

Number of posts in the current taxonomy term (products in a category, posts in a tag). Useful for a badge next to the category name.

wp="product-price"Альтернатива: wp="product_price"

WooCommerce price of a product that is not on sale; hidden while it is. Put product-price-sale and product-price-regular next to it for sales.

wp="product-price-regular"Альтернатива: wp="product_price_regular"

The old, struck-through price, shown only while the product is on sale; empty and hidden otherwise. Pair it with product-price-sale.

wp="product-price-sale"Альтернатива: wp="product_price_sale"

Sale (discounted) WooCommerce product price. Empty when the product has no active sale.

wp="product-prices"Альтернатива: wp="product_prices"

Wrapper container for the product price block — typically holds product-price-regular and product-price-sale inside. Structures the price block for CSS.

wp="product-sku"Альтернатива: wp="product_sku"

WooCommerce product SKU. Hidden when the SKU field is not set on the product.

wp="product-gallery"Альтернатива: wp="product_gallery"

WooCommerce product gallery container — supports swipe and zoom on the product page.

wp="product-cat-image"Альтернатива: wp="product_cat_image"

WooCommerce product category image — the thumbnail set under Products → Categories. URL is injected into the img src.

wp="product-cat-bg-image"Альтернатива: wp="product_cat_bg_image"

Product category image as a background-image

wp="product-qty"Альтернатива: wp="product_qty"

WooCommerce product quantity input — usually <input type="number">. Pairs with product-qty-plus and product-qty-minus.

wp="product-qty-minus"Альтернатива: wp="product_qty_minus"

Decrement-quantity button for cart or product page. JS reduces the linked product-qty input by 1.

wp="product-qty-plus"Альтернатива: wp="product_qty_plus"

Increment-quantity button for cart or product page. JS increases the linked product-qty input by 1.

wp="add-to-cart"Альтернатива: wp="add_to_cart"

Goes on a <form> with a submit button: adds the product without a page reload and updates the cart counter and mini cart. Quantity inside: wp="product-qty". Variable products use the var-* values.

wp="cart-total"Альтернатива: wp="cart_total"

Cart total as WooCommerce shows it in the cart. Updated without a page reload when the cart changes.

wp="cart-count"Альтернатива: wp="cart_count"

WooCommerce cart item count — updated via AJAX. Used in the header for a badge on the cart icon.

wp="cart-empty"Альтернатива: wp="cart_empty"

«Cart is empty» container — the generator shows it only when the cart has no items. Usually contains a «back to shopping» link.

wp="product-group-child"Альтернатива: wp="product_group_child"

Рядок одного дочірнього товару згрупованого товару — ставиться на повторюваний рядок циклу дочірніх (wp-product-query="get_grouped_children()"). Віддає ідентифікатор товару та ціну за штуку, з яких рахується загальний підсумок.

wp="product-group-qty"Альтернатива: wp="product_group_qty"

Поле кількості дочірнього товару — стає числовим полем зі стартовим значенням 0 («не замовлено») та обмеженням за залишком, якщо облік залишків увімкнено. Тут потрібне саме воно, а не wp="product-qty": та мітка належить формі самого товару й рухала б усі рядки одразу.

wp="product-group-qty-minus"Альтернатива: wp="product_group_qty_minus"

Кнопка зменшення кількості дочірнього товару — змінює лише свій рядок.

wp="product-group-qty-plus"Альтернатива: wp="product_group_qty_plus"

Кнопка збільшення кількості дочірнього товару — змінює лише свій рядок.

wp="product-group-totals"Альтернатива: wp="product_group_totals"

Обгортка підсумків згрупованого товару — усередині лічильник, сума та кнопка додавання в кошик.

wp="product-group-count"Альтернатива: wp="product_group_count"

Загальна кількість обраних дочірніх товарів — перераховується у браузері під час введення.

wp="product-group-price"Альтернатива: wp="product_group_price"

Загальна сума обраного — перераховується у браузері під час введення.

wp="product-group-add"Альтернатива: wp="product_group_add"

Додає всю добірку до кошика одним запитом: кожен дочірній товар, у якого кількість більша за нуль.

wp="search"

Site search form wrapper — the generator wraps it in an HTML5 <form action="/?s="> with input[name=s].

wp="autoload"

Marker for AJAX trigger on a filter element (checkbox / radio / select inside wp-filter-form). When set, JS auto-submits the filter form on value change, no «Apply» click needed. NOT infinite-scroll (see wp-load for that).

wp="product-image"Альтернатива: wp="product_image"

Additional product image — URL is injected into the img src. Distinct from product-gallery (the whole gallery).

wp="product-bg-image"Альтернатива: wp="product_bg_image"

Product thumbnail as a background image — URL written into the inline background-image style.

wp="product-lbox-image"Альтернатива: wp="product_lbox_image"

Product thumbnail as a lightbox link — <img> is wrapped in <a href> with lightbox attributes.

wp="product-image-gallery"Альтернатива: wp="product_image_gallery"

Product gallery without automatic lightbox — use when the modal viewer is wired via a custom JS component.

wp="product-title"Альтернатива: wp="product_title"

Product title outside the loop context. Inside single-product / loop product use wp="post-title" instead.

wp="product-height"Альтернатива: wp="product_height"

Product height from the shipping settings in WC admin.

wp="product-width"Альтернатива: wp="product_width"

Product width from the shipping settings in WC admin.

wp="product-length"Альтернатива: wp="product_length"

Product length from the shipping settings in WC admin.

wp="product-weight"Альтернатива: wp="product_weight"

Product weight from the shipping settings in WC admin.

wp="product-sale-percent"Альтернатива: wp="product_sale_percent"

Discount percentage on the product — computed from regular/sale price. Useful for a -20% badge.

wp="product-attrs"Альтернатива: wp="product_attrs"

Loop container over the product's attributes (inside: attr-name, attr-options)

wp="attr-name"Альтернатива: wp="attr_name"

Product attribute name (inside a product-attrs or var-attrs loop)

wp="auto-attr-terms"Альтернатива: wp="auto_attr_terms"

Terms of the CURRENT attribute inside var-attrs — the same as wp-attr-terms="*", under its own name, so a converter that does not know the mark leaves the markup static

wp="attr-options"Альтернатива: wp="attr_options"

Product attribute values (inside a product-attrs loop)

wp="var-attrs"Альтернатива: wp="var_attrs"

Обгортка, яка повторює свою першу дитину для КОЖНОГО атрибута варіації, що є в товару — тож новий атрибут (новий розмір, новий інгредієнт) з'являється на сайті одразу після збереження товару у WordPress, без правки дизайну і без перезбирання теми. Усередині повторюваної групи використовуйте wp="attr-name" для підпису атрибута та wp-attr-terms="*" для списку його значень. Атрибути, винесені на цьому ж шаблоні вручну (wp-attr-terms="pa_x" або wp-if-attr="pa_x"), ПРОПУСКАЮТЬСЯ — ручні блоки часто кастомні, інакше атрибут намалювався б двічі. Не-таксономічні («вільний текст») атрибути теж пропускаються: обирати в них нема чого. Не плутати з wp="product-attrs" — той ПЕРЕЛІЧУЄ атрибути як характеристики, а цей будує ПЕРЕМИКАЧ.

wp="product"

Product card container — wrapper for a single product on a catalog page.

wp="products"

Catalog loop of the shop and category pages: shows the page’s own products, and the first card is the pattern. For products on another page use wp-product-query.

wp="stock"

Numeric stock count for the product — shown only when stock management is enabled.

wp="stocked"

«In stock» block — the generator shows it when the product is available for purchase.

wp="not-stocked"Альтернатива: wp="not_stocked"

«Out of stock» block — the generator shows it when the product has no stock.

wp="backorder"

«Available on backorder» block — shown when the product is out of stock but orderable.

wp="var-price"Альтернатива: wp="var_price"

Current price of the selected variation. Updated via JS when the variation changes.

wp="var-price-regular"Альтернатива: wp="var_price_regular"

Regular (struck-through) price of the selected variation.

wp="var-price-sale"Альтернатива: wp="var_price_sale"

Sale price of the selected variation. Empty if no sale.

wp="var-image"Альтернатива: wp="var_image"

Image of the selected variation — URL injected into src.

wp="var-lbox-image"Альтернатива: wp="var_lbox_image"

Variation image in lightbox.

wp="var-bg-image"Альтернатива: wp="var_bg_image"

Variation image as background-image on the current element.

wp="var-desc"Альтернатива: wp="var_desc"

Description of the selected variation.

wp="var-sku"Альтернатива: wp="var_sku"

SKU of the selected variation.

wp="var-stock"Альтернатива: wp="var_stock"

Numeric stock count for the selected variation.

wp="var-stocked"Альтернатива: wp="var_stocked"

«In stock» block for variation — shown when the selected variation is available.

wp="var-not-stocked"Альтернатива: wp="var_not_stocked"

«Out of stock» block for variation.

wp="var-backorder"Альтернатива: wp="var_backorder"

«Backorder» block for variation.

wp="var-id"Альтернатива: wp="var_id"

Numeric ID of the selected variation.

wp="var-height"Альтернатива: wp="var_height"

Variation height (shipping).

wp="var-width"Альтернатива: wp="var_width"

Variation width (shipping).

wp="var-length"Альтернатива: wp="var_length"

Variation length (shipping).

wp="var-weight"Альтернатива: wp="var_weight"

Variation weight (shipping).

wp="cart-full"Альтернатива: wp="cart_full"

«Cart not empty» container — the generator shows it only when the cart has items. Paired with cart-empty.

wp="cart-weight-total"Альтернатива: wp="cart_weight_total"

Total weight of all items in the cart.

wp="checkout"

Checkout page container — the main wrapper for checkout.php.

wp="checkout-form"Альтернатива: wp="checkout_form"

Full checkout form — contains billing-* fields and payment/shipping inside.

wp="checkout-full"Альтернатива: wp="checkout_full"

Filled checkout form — shown when the cart has items.

wp="checkout-total"Альтернатива: wp="checkout_total"

Final payable amount on the checkout page.

wp="order-total"Альтернатива: wp="order_total"

Order total amount in the account details view.

wp="order-number"Альтернатива: wp="order_number"

Order number (text identifier).

wp="order-comments"Альтернатива: wp="order_comments"

Order comments field — textarea for additional notes from the customer.

wp="discount-total"Альтернатива: wp="discount_total"

Total discount applied to the order — sum of coupon discounts.

wp="shipping"

Shipping options container — typically holds shipping-radio inside.

wp="shipping-radio"Альтернатива: wp="shipping_radio"

Radio button for one shipping option.

wp="shipping-cost"Альтернатива: wp="shipping_cost"

Cost of the selected shipping option.

wp="shipping-countries"Альтернатива: wp="shipping_countries"

List of countries where shipping is available.

wp="shiping-total"Альтернатива: wp="shiping_total"

Final shipping cost. The name keeps a typo from the alternative format («shiping»); kept for compatibility.

wp="payment"

Payment methods container — typically holds payment-radio inside.

wp="payment-desc"Альтернатива: wp="payment_desc"

Description of the selected payment method — caption under the radio button.

wp="payment-radio"Альтернатива: wp="payment_radio"

Radio button for one payment method.

wp="add-coupon"Альтернатива: wp="add_coupon"

Coupon code input + apply button.

wp="show-coupon"Альтернатива: wp="show_coupon"

«Use coupon» trigger button — usually expands the code input form.

wp="discount-amount"Альтернатива: wp="discount_amount"

Total discount amount in the cart

wp="discount-percent"Альтернатива: wp="discount_percent"

Total discount percentage in the cart

wp="coupon-discount"Альтернатива: wp="coupon_discount"

Discount amount from applied coupons only

wp="used-coupons"Альтернатива: wp="used_coupons"

Loop container over applied coupons (inside: coupon-code, coupon-amount, coupon-descr)

wp="coupon-code"Альтернатива: wp="coupon_code"

Code of the applied coupon (inside a used-coupons loop)

wp="coupon-amount"Альтернатива: wp="coupon_amount"

Discount amount of the coupon (inside a used-coupons loop)

wp="coupon-descr"Альтернатива: wp="coupon_descr"

Coupon description (inside a used-coupons loop)

wp="billing-address"Альтернатива: wp="billing_address"

Customer address (combined field — joins address_1 + address_2).

wp="billing-address-1"Альтернатива: wp="billing_address_1"

Customer address — line 1 (street, building).

wp="billing-address-2"Альтернатива: wp="billing_address_2"

Customer address — line 2 (apartment, suite).

wp="billing-city"Альтернатива: wp="billing_city"

Customer city.

wp="billing-state"Альтернатива: wp="billing_state"

Customer state / region.

wp="billing-postcode"Альтернатива: wp="billing_postcode"

Postal code.

wp="billing-country"Альтернатива: wp="billing_country"

Customer country (select with the WC countries list).

wp="billing-company"Альтернатива: wp="billing_company"

Customer company name (for B2B orders).

wp="billing-first-name"Альтернатива: wp="billing_first_name"

Customer first name.

wp="billing-last-name"Альтернатива: wp="billing_last_name"

Customer last name.

wp="billing-email"Альтернатива: wp="billing_email"

Customer email — for order confirmation.

wp="billing-phone"Альтернатива: wp="billing_phone"

Customer phone.

wp="current-user"Альтернатива: wp="current_user"

Display name of the currently authenticated WP user. Empty for guests.

wp="login-form"Альтернатива: wp="login_form"

Standard WordPress login form (wp_login_form).

wp="login-wc"Альтернатива: wp="login_wc"

WooCommerce login form — extended version for my-account.

wp="register-wc"Альтернатива: wp="register_wc"

WooCommerce new-user registration form.

wp="recover-wc"Альтернатива: wp="recover_wc"

WooCommerce password recovery form.

wp="update-user"Альтернатива: wp="update_user"

User-data edit form in the account dashboard.

wp="update-billing"Альтернатива: wp="update_billing"

Billing-address edit form in the account dashboard.

wp="update-password"Альтернатива: wp="update_password"

Password-change form in the account dashboard.

wp="logout-link"Альтернатива: wp="logout_link"

Logout link — href points to wp-login.php?action=logout with the correct nonce.

wp="orders"

Order list for the current user — repeating block (loop).

wp="customer-files"Альтернатива: wp="customer_files"

List of downloadable files for the customer (digital products).

wp="customer-file-link"Альтернатива: wp="customer_file_link"

Download link for a specific customer file.

wp="term-title-link"Альтернатива: wp="term_title_link"

Taxonomy term title with a link to its archive — text + href in one.

wp="term-desc"Альтернатива: wp="term_desc"

Taxonomy term description — the «Description» field from the taxonomy admin.

wp="term-children"Альтернатива: wp="term_children"

Recursion-point marker inside wp-term-tree: container into which the generator inserts the nested-terms block (same structure as the parent). Any nesting depth.

wp="archive-title"Альтернатива: wp="archive_title"

Archive page title — category name, tag, author, date (depending on archive type).

wp="archive-title-link"Альтернатива: wp="archive_title_link"

Archive title with a link to the archive itself — text + href.

wp="sort"

Sort selector container — usually a select with orderby options.

wp="orderby"

Sort-order option inside sort. Values: date, price, popularity, etc.

wp="perpage"

«Items per page» selector container for archives.

wp="filter"

Product / post filter container — wrapper for filter forms.

wp="reset-filter"Альтернатива: wp="reset_filter"

Button to reset all applied filters.

wp="is-mobile"Альтернатива: wp="is_mobile"

Block renders only on mobile devices (phones + tablets).

wp="is-phone"Альтернатива: wp="is_phone"

Block renders only on phones (not tablets).

wp="is-tablet"Альтернатива: wp="is_tablet"

Block renders only on tablets.

wp="is-desktop"Альтернатива: wp="is_desktop"

Block renders only on desktops.

wp="is-not-phone"Альтернатива: wp="is_not_phone"

Block renders on all devices except phones (tablets + desktop).

wp="is-ios"Альтернатива: wp="is_ios"

Block renders only on iOS devices (iPhone, iPad).

wp="is-android"Альтернатива: wp="is_android"

Block renders only on Android devices.

wp="is-featured"Альтернатива: wp="is_featured"

Block renders only for «featured» WC products (is_featured flag).

wp="is-novelty"Альтернатива: wp="is_novelty"

Block renders only for «new arrivals» — recently published products.

wp="post-views"Альтернатива: wp="post_views"

Post view counter. Requires a compatible plugin (Post Views Counter, etc.).

wp="modified-date"Альтернатива: wp="modified_date"

Date the post was last modified

wp="has-excerpt"Альтернатива: wp="has_excerpt"

The block is shown only if the post has an excerpt

wp="post-comments"Альтернатива: wp="post_comments"

Post comments container — wrapper block (differs from wp="comments" which calls comments_template()).

wp="comment-list"Альтернатива: wp="comment_list"

Друкує список коментарів ВАШОЮ версткою замість стандартної розмітки WordPress. Шаблоном одного коментаря стає перша дитина з мітками коментаря; гілки, сторінки та модерація лишаються за WordPress. Кореню картки проставляються id="comment-<ID>" і клас tf-comment-depth-N — оформіть його, щоб зробити відступ відповідям: власної обгортки у відповіді немає.

wp="comment-author"Альтернатива: wp="comment_author"

Ім’я автора коментаря. Ставиться всередині шаблону одного коментаря.

wp="comment-avatar"Альтернатива: wp="comment_avatar"

Аватар автора. На <img> підміняється src (статичні srcset/sizes вирізаються — інакше браузер віддасть перевагу їм), на іншому елементі стає фоновим зображенням.

wp="comment-date"Альтернатива: wp="comment_date"

Дата коментаря. Ставиться всередині шаблону одного коментаря.

wp="comment-text"Альтернатива: wp="comment_text"

Текст коментаря. Ставиться всередині шаблону одного коментаря.

wp="comment-reply"Альтернатива: wp="comment_reply"

Посилання «Відповісти». Зберігає ваш елемент і класи, отримує справжню адресу відповіді та дані, за якими штатний скрипт переносить форму під потрібний коментар.

wp="comment-form"Альтернатива: wp="comment_form"

Збирає форму коментаря з ВАШОЇ верстки полів. Саму форму й далі друкує WordPress — у ній живуть приховані поля, хуки плагінів і поведінка при відповіді, — а вашими стають блоки полів, текстове поле та кнопка. Нерозмічене поле лишається штатним.

wp="comment-input-author"Альтернатива: wp="comment_input_author"

Поле «Ім’я» форми коментаря. Мітку можна поставити на саме поле або, що зручніше, на його обгортку (підпис + поле + підказка) — блоком поля стане весь розмічений елемент.

wp="comment-input-email"Альтернатива: wp="comment_input_email"

Поле «E-mail» форми коментаря.

wp="comment-input-url"Альтернатива: wp="comment_input_url"

Поле «Сайт» форми коментаря.

wp="comment-input-text"Альтернатива: wp="comment_input_text"

Текстове поле коментаря.

wp="comment-submit"Альтернатива: wp="comment_submit"

Кнопка надсилання коментаря. Ваша верстка та класи зберігаються.

wp="review-list"Альтернатива: wp="review_list"

Друкує відгуки товару WooCommerce ВАШОЮ версткою. Відгук — це коментар плюс оцінка, тому мітки коментаря працюють усередині картки відгуку без змін. Усе всередині блоку — ДЖЕРЕЛО: перша дитина з мітками відгуку/коментаря стає шаблоном одного відгуку, а блок wp="review-form" усередині — полями форми. Сам блок лишається за WooCommerce: заголовок і лічильник, сторінки, повідомлення «спершу купіть», перевірка та збереження.

wp="review-rating"Альтернатива: wp="review_rating"

Оцінка відгуку. Елементу проставляються data-rating і CSS-змінна --tf-rating — зірки малюються шириною, без жодного рядка JS (width: calc(var(--tf-rating) / 5 * 100%)). ПОРОЖНЬОМУ елементу друкується число; якщо всередині ваша верстка (свої зірки), її не чіпають.

wp="review-verified"Альтернатива: wp="review_verified"

Показується лише у відгуку з підтвердженою покупкою. Ваша верстка, ваші класи.

wp="review-form"Альтернатива: wp="review_form"

Форма відгуку за ВАШОЮ версткою полів. Ставиться всередині wp="review-list" — саме там WooCommerce друкує форму. Поля розмічаються мітками коментаря (comment-input-author / -email / -text, comment-submit) плюс review-input-rating.

wp="review-input-rating"Альтернатива: wp="review_input_rating"

Поле оцінки у формі відгуку (select). Якщо варіантів немає, підставляються 1-5. У масив «fields» воно не потрапляє: ядро друкує його лише анонімам, і авторизований покупець втратив би оцінку.

wp="post-categories"Альтернатива: wp="post_categories"

Post categories as a link list. Alternative output format (vs. wp="post-category" which outputs a comma-separated list).

wp="post-bg-link"Альтернатива: wp="post_bg_link"

Wrap-link on the post card — turns the whole block into a clickable area pointing to post-link.

wp="parent-title-link"Альтернатива: wp="parent_title_link"

Parent page title with link — for hierarchical pages.

wp="home-link"Альтернатива: wp="home_link"

Alias of wp="home-url" — link to the site's home page.

wp="search-text"Альтернатива: wp="search_text"

Search query highlight in the results header («You searched for: ...»). Alternative to wp="search-query".

wp="clear"

Utility marker: removes the element from DOM at build time while keeping its bound ACF/SCF fields in admin. For DOM cleanup without losing editability.

wp="delete-element"Альтернатива: wp="delete_element"

Synonym of wp="clear": removes the element from DOM at build time while keeping its bound ACF/SCF fields in admin (e.g. an empty tab-divider div).

Кастомний запит

A custom WP_Query loop

wp-query="'post_type' => 'name', 'posts_per_page' => 10"Альтернатива: wp_query

Перетворює елемент на цикл записів (WP_Query) у будь-якому місці теми: всередині елемента — картка одного запису, вона повториться для кожного результату. Параметри пишуться парами PHP-масиву, наприклад wp-query="'post_type'=>'news', 'posts_per_page'=>6". Усередині циклу працюють wp="post-title", wp="post-image", посилання та fld-* поля поточного запису.

Pagination & Queries

wp-paginate="parameters" / wp-paginate (no value)Альтернатива: wp_paginate

Renders pagination links for archives and search results via paginate_links(). Parameters (mid_size, end_size, prev/next text…) are passed in the value.

Place it on the container the navigation goes into. The value holds optional parameters joined with `&`: `mid_size` (default 1) — how many page numbers to show before and after the current one; `end_size` (default 1) — how many at the start and the end; `prev_next` (1/0) — whether to show the Previous/Next buttons; `prev_text` / `next_text` — the text of those buttons (default «<» and «>»); `show_all` (1/0) — whether to list every page. For a custom query use wp-paginate-query.
wp-paginate-query="query_name"Альтернатива: wp_paginate_query

Pagination for a named or custom query rather than the main loop — point it at the same query used by wp-query-name / a custom WP_Query.

Same as wp-paginate, but tied to a named WP_Query (registered with wp-query-name) instead of the global `$wp_query`. The pagination parameters are the same.
wp-query-name="query-preset-name"Альтернатива: wp_query_name

Runs a post loop from a named query preset defined in the theme panel — admins build the query once (post type, taxonomy, ordering) and reference it by name.

Works like wp-query, but the query arguments come from a named preset on the Queries screen of the theme panel. The loop is the same as wp-query; when WooCommerce is active, `$product` is available inside it.
wp-product-query="get_related_products(4)" / "get_upsell_products(4)" / any PHP expression returning WP_Query argsАльтернатива: wp_product_query

A WooCommerce loop over the results of a custom product query — related, upsell, cross-sell, or recently-viewed products. Carries WC product context inside.

A loop container. Inside it `$product = wc_get_product(get_the_ID())` is available. Handy for «Frequently bought together» or «Related products» blocks. Any WP_Query arguments can also be passed as a string.
wp-select="query_name"Альтернатива: wp_select

Builds a <select> from the results of a named query or an ACF repeater — useful for dynamically populated dropdowns.

Place it on a container (usually with `<option>` templates inside). The query name is either the name of an ACF repeater (`have_rows`) or of a named WP_Query registered with wp-query-name. Every iteration adds one `<option>` (or whatever template is inside).

Post Content & Meta

wp-post-id="prefix"Альтернатива: wp_post_id

Outputs the current post ID, optionally with a text prefix — handy for building unique anchors, form field names, or data attributes that need to reference the post.

Place it on the element that should carry an identifier like «prefix-ID» (for unique anchors, JS selectors, data-attribute values). The value is any prefix; it is joined to the post ID with a hyphen. Without a prefix, leave the value empty and the plain ID is printed.
wp-post-time="format"Альтернатива: wp_post_time

Outputs the publish time of the current post via get_the_time(). Respects the site's date/time format settings. Must run inside The Loop.

Prints the publish date in the given format (PHP date() syntax). An empty value uses the default format from the WordPress settings. Example: `wp-post-time="d.m.Y"` → 21.05.2026; `wp-post-time="d F"` → 21 May.
wp-post-terms="taxonomy"Альтернатива: wp_post_terms

Lists the names of all terms a post belongs to in a given taxonomy, joined by commas — e.g. all product categories or tags of the current item.

Prints the names of ALL terms of the given taxonomy assigned to the current post, separated by `", "`. Handy for a «Tags:» / «Categories:» line. If the post has no terms in that taxonomy, nothing is printed.
wp-post-term-desc="taxonomy"Альтернатива: wp_post_term_desc

Outputs the description text of the post's first term in the given taxonomy. Useful for showing a short blurb under a category label.

Inside a wp-post-terms block (or on its own) prints the `description` of the current term. On a taxonomy archive page, outside a post, it falls back to `get_queried_object()->description`.
wp-post-term-link="taxonomy"Альтернатива: wp_post_term_link

Sets the href to the archive link of the post's first term in the given taxonomy — turns the element into a clickable link to that category/tag.

Place it on an `<a>` or any element with an `href`. The `href` is replaced with the URL of the post's first term in the given taxonomy. The wp-post-term-link attribute itself is removed.
wp-post-term-query="taxonomy"Альтернатива: wp_post_term_query

Loops over the taxonomy terms the current post belongs to, rendering the inner markup once per term. Use it to print a list of category badges, each linked and styled.

A loop container. Inside it `$term` — the current term — is available, so wp-term-title, wp-term-link and wp-count work. The terms come from `wp_get_post_terms()`.
wp-post-term-path="taxonomy"Альтернатива: wp_post_term_path

Renders breadcrumbs from the term hierarchy of the post — the chain of ancestor terms down to the current one, each as a link. Ideal for category breadcrumb trails.

Place it on an `<a>` — the template of one breadcrumb. It is repeated for every ancestor of the post's term, each crumb linking to `get_term_link()`. A separator (usually `<span class="br-sep">/</span>`) is added before each crumb. For taxonomy archives use wp-term-path.
wp-count="singular, plural, plural (many)"Альтернатива: wp_count

Outputs a pluralised label with the result count — e.g. «12 products» / «1 product» — choosing the correct grammatical form for the number.

Prints the number of posts in the current term or query together with the right plural form of the noun. List three forms separated by commas (as in WordPress _n()). Used inside wp-term-query or a similar block where the current term has a post count. Example: `article, articles, articles` → «5 articles», «1 article».
wp-attr-meta="Attribute name"Альтернатива: wp_attr_meta

Loops over a product's custom (non-taxonomy) WooCommerce attributes — the per-product attributes defined directly on the product rather than as global pa_* taxonomies.

Unlike wp-attr-terms, this works with a product's custom attributes (not a global pa_* taxonomy), i.e. values entered on the product itself. The name is written exactly as it is set in the product attribute, including non-Latin characters.

Терміни таксономії поточного поста (wp-post-term)

Loop over the taxonomy terms of the current post

wp-post-term="product_cat" / "category" / "pa_color"Альтернатива: wp_post_term

The first term of the current post in a taxonomy (category, post_tag, product_cat, pa_color…): name and link on an <a>, the name elsewhere. All terms as badges: wp-post-term-query; all in one line: wp-post-terms.

Prints the first term of the current post; nothing when the post has none

Comments

wp-comment-formАльтернатива: wp_comment_form

Renders the WordPress comment form for the current post via comment_form() — respects discussion settings and moderation rules.

Used without a value. Replaces the element's content with the standard comment form, `comment_form()`. The form's fields, button and texts come from the WordPress settings and the theme's styles.
wp-comment-listАльтернатива: wp_comment_list

Renders the list of comments for the current post — threaded replies, author avatars, and dates per theme settings.

Used without a value. Replaces the element's content with the comment list, `wp_list_comments()`. Often used together with wp-comment-form.

Таксономії

Запит термінів таксономії (wp-term-query)

Loop over taxonomy terms (WP_Term_Query)

wp-term-query="product_cat" or wp-term-query="'taxonomy' => 'product_cat', 'parent' => 0"Альтернатива: wp_term_query

Loop over taxonomy terms (WP_Term_Query / get_terms). Parameters either in short form («product_cat») or full string («'taxonomy' => 'product_cat', 'parent' => 0»). Inside, use term-title, term-link, term-count.

Inside, use term-title, term-link, term-count, term-children

Terms & Taxonomies

wp-term-path="taxonomy"Альтернатива: wp_term_path

Renders breadcrumbs for a taxonomy archive page — the ancestor chain of the currently queried term. Place it on the category/tag archive template.

Same as wp-post-term-path, but for the archive page of the taxonomy itself (not a single post). Takes the page's current term from `get_queried_object_id()`. Each crumb links to an ancestor term.
wp-term-tree="taxonomy"Альтернатива: wp_term_tree

Renders a hierarchical tree of taxonomy terms with recursive nesting — parent terms with their children, to any depth. The first child element becomes the row template.

A loop container that prints terms with their nesting (parents → children). `$term` is available inside. Used for catalogues and product menus.
wp-term-query2="query parameters"Альтернатива: wp_term_query2

Nested term loop, level 2 — runs inside wp-term-tree / wp-term-query to render the children of the current term. Parent is set automatically from the outer loop.

A nested loop inside a parent wp-term-query: iterates over the children of the current outer term (`parent => $term->term_id` is added to the arguments automatically). Inside it the term is `$term_2`.
wp-term-query3="query parameters"Альтернатива: wp_term_query3

Nested term loop, level 3 — the third level of a term hierarchy, nested inside a level-2 loop. Same auto-parent behaviour as level 2.

Same as wp-term-query2, one level deeper (the children of `$term_2`). Inside it the term is `$term_3`.
wp-term-select="preset-name"Альтернатива: wp_term_select

Loops over terms from a named term-query preset configured in the theme panel — lets an admin define the term set once and reuse it across templates.

The WP_Term_Query counterpart of wp-query-name: the arguments come from a named term-query preset on the Queries screen of the theme panel.
wp-menu-tree="Menu name"Альтернатива: wp_menu_tree

Renders a WordPress menu by name with your own markup: one pattern for a plain item and one for an item with a dropdown (wp-menu-tpl="link" / "drop"). Any depth: wp="menu-children" inside a sub-item prints the next level.

The menu counterpart of wp-term-tree: prints a menu with its nesting. Inside the block these marks work: `wp="menu_title"`, `wp="menu_link"`, `wp="menu_title_link"`, `wp_if="menu_children"`, `wp="menu_children"` (recursion).

Conditional Blocks

wp-has-term="taxonomy" / wp-has-term="taxonomy:term-slug"Альтернатива: wp_has_term

Conditional block — renders its contents only if the current post HAS at least one term in the given taxonomy (e.g. show a badge only for products in a sale category).

Place it on a wrapper block. Without a colon it checks whether the post has at least one term of the given taxonomy; with a colon it checks one specific term by slug. If the condition holds, the block is shown; otherwise it is hidden.
wp-has-not-term="taxonomy" / wp-has-not-term="taxonomy:term-slug"Альтернатива: wp_has_not_term

Conditional block — renders its contents only if the current post does NOT have a term in the given taxonomy. The inverse of wp-has-term.

The opposite of wp-has-term. Place it on a wrapper block. Without a colon the block is shown if the post has no term of that taxonomy; with a colon, if the post lacks one specific term.
wp-set-php="attribute: php code"Альтернатива: wp_set_php

Sets an HTML attribute from a PHP expression — the value «name:php_code» becomes name="<result>" with the code evaluated and escaped at render.

Same as wp-set, but the value comes from running PHP code. Useful for dynamic id/data-* attributes. Example: `wp-set-php="id: echo $term->term_id"` → `id="<?php echo $term->term_id ?>"`. For static values use wp-set.

WooCommerce (магазин)

WooCommerce кошик (wp-cart)

Product fields in the WooCommerce cart loop

wp-cart="items"Альтернатива: wp_cart="items"

Cart items loop container — the generator expands a foreach over WC()->cart->get_cart() inside. Use product_title, product_qty, product_price, etc. within.

wp-cart="mini"Альтернатива: wp_cart="mini"

Mini cart (sidecart) — compact cart variant for the header or a dropdown block.

wp-cart="not_empty"Альтернатива: wp_cart="not_empty"

«Cart not empty» wrapper — the generator shows the block only when the cart has items. Paired with cart-empty.

wp-cart="empty"Альтернатива: wp_cart="empty"

«Cart is empty» wrapper — shown only when the cart has no items, the same block as wp="cart-empty". Paired with not_empty.

wp-cart="product_title"Альтернатива: wp_cart="product_title"

Product title in the cart row — same as the catalog product title.

wp-cart="product_link"Альтернатива: wp_cart="product_link"

Product permalink in the cart row — written into the href of an <a>.

wp-cart="product_image"Альтернатива: wp_cart="product_image"

Product image (src) in the cart row — thumbnail or a specifically assigned image.

wp-cart="product_bg_image"Альтернатива: wp_cart="product_bg_image"

Product image as background-image on the cart row element.

wp-cart="product_price"Альтернатива: wp_cart="product_price"

Unit price of a product in the cart that is not on sale; add product_price_sale and product_price_regular for discounted items.

wp-cart="product_price_regular"Альтернатива: wp_cart="product_price_regular"

Regular (struck-through) unit price of the product in cart.

wp-cart="product_price_sale"Альтернатива: wp_cart="product_price_sale"

Sale unit price of the product in cart.

wp-cart="product_qty"Альтернатива: wp_cart="product_qty"

Quantity input field for the cart item.

wp-cart="product_qty_minus"Альтернатива: wp_cart="product_qty_minus"

Decrement-quantity (-) button for the cart item.

wp-cart="product_qty_plus"Альтернатива: wp_cart="product_qty_plus"

Increment-quantity (+) button for the cart item.

wp-cart="product_remove"Альтернатива: wp_cart="product_remove"

Remove-from-cart button (usually a cross in the row).

wp-cart="product_total"Альтернатива: wp_cart="product_total"

Subtotal for the cart row (unit price × quantity).

wp-cart="product_excerpt"Альтернатива: wp_cart="product_excerpt"

Short product description in the cart row

wp-cart="product_sale_percent"Альтернатива: wp_cart="product_sale_percent"

Product discount percentage in the cart row

wp-cart="product_qty_text"Альтернатива: wp_cart="product_qty_text"

Product quantity as text (no input field)

wp-cart="product_weight"Альтернатива: wp_cart="product_weight"

Product weight in the cart row

wp-cart="product_height"Альтернатива: wp_cart="product_height"

Product height in the cart row

wp-cart="product_width"Альтернатива: wp_cart="product_width"

Product width in the cart row

wp-cart="product_length"Альтернатива: wp_cart="product_length"

Product length in the cart row

wp-cart="subtotal"Альтернатива: wp_cart="subtotal"

Cart subtotal (before discounts)

wp-cart="total"Альтернатива: wp_cart="total"

Cart total (after discounts)

wp-cart="volume"Альтернатива: wp_cart="volume"

Total volume of the products in the cart (m³)

wp-cart="mobile"Альтернатива: wp_cart="mobile"

Mobile version of the cart (the same AJAX-updated mini cart)

wp-cart="cart_order"Альтернатива: wp_cart="cart_order"

Container of the full cart order block (data-wc="full_cart")

wp-cart="remove_all"Альтернатива: wp_cart="remove_all"

Button that empties the whole cart

wp-cart="remove_btn"Альтернатива: wp_cart="remove_btn"

Button that removes the selected products

wp-cart="remove_item"Альтернатива: wp_cart="remove_item"

Checkbox that selects one product for removal

wp-cart="remove_items"Альтернатива: wp_cart="remove_items"

«Select all» checkbox for bulk removal

wp-cart="if_low_stock"Альтернатива: wp_cart="if_low_stock"

Conditional block: shown if the product is low in stock

wp-cart="low_stock"Альтернатива: wp_cart="low_stock"

The low-stock threshold of the product; works inside wp-cart="if_low_stock".

Атрибут товару в кошику (wp-cart-attr)

A WooCommerce product attribute in the cart loop

wp-cart-attr="pa_size" / "pa_color"Альтернатива: wp_cart_attr

Outputs the value of a WooCommerce product attribute in the cart loop. For example, the size or color of the product in the cart row. Value is the attribute slug (pa_size).

Inside wp_cart="items" — prints the value of a product attribute (for example the size) in the cart row

Умовний атрибут у кошику (wp-cart-if-attr)

Conditional block inside the cart: shown only if the product in the cart has the attribute

wp-cart-if-attr="pa_size"Альтернатива: wp_cart_if_attr

Conditional block in the cart context: render only when a cart item has the named attribute. The cart-row analogue of wp-if-attr.

Same as wp-if-attr, but in the wp_cart="items" context

WooCommerce Variations & Cart

wp-var-select="pa_attribute"Альтернатива: wp_var_select

A variation <select> for a WooCommerce variable-product attribute — populates options from the product's variations and drives the add-to-cart variation picker.

In a single-product context prints one `<option>` per value of the given variation attribute. Place it on the `<select>`; it gets `name="attribute_<attr>"`, as WooCommerce expects for variation selection.
wp-cart-term="taxonomy"Альтернатива: wp_cart_term

Outputs a taxonomy term of the product in a cart row — e.g. the category or a custom attribute term, shown next to each cart line item.

Inside the cart loop (`wp-cart="items"`) prints the names of the given taxonomy's terms for the product in the row. Works like wp-cart-attr, but for terms. Its pair is wp-cart-if-term (conditional output when the term is present).
wp-cart-if-term="taxonomy:term" or wp-cart-if-term="term"Альтернатива: wp_cart_if_term

Conditional block inside a cart row — renders its contents only if the line-item product has the given taxonomy term.

Conditional block in the cart loop: shows the wrapped block if the product in the row has the given term. Works like wp-cart-if-attr, but for terms.

Терміни атрибуту товару (wp-attr-terms)

Loop over the terms of a WooCommerce product attribute

wp-attr-terms="pa_size" / "pa_color" / "*"Альтернатива: wp_attr_terms

Loop over all terms of a WooCommerce product attribute. For example, iterates all sizes (pa_size) or all colors (pa_color). Used on the product page or in filters.

Iterates over every value of an attribute (for example every size). Inside, use term-title, term-link. The value "*" means the terms of the CURRENT attribute — it works only inside a wp="var-attrs" container (outside it there is nothing to iterate, and this is reported in the Logs)

Умовний атрибут товару (wp-if-attr)

Conditional block: shown only if the product has the given attribute

wp-if-attr="pa_size"Альтернатива: wp_if_attr

Conditional block: render only when the current product has the named attribute. If the attribute is missing — the whole block is hidden.

If the current product has no value for the attribute, the block is hidden

Conditional: Product Stock Status (wp-in-stock)

Conditional block: shown only for a product in stock (1) or out of stock (0)

wp-in-stock="1" / wp-in-stock="0"Альтернатива: wp_in_stock

Conditional block by the product's stock status: with 1 it renders only for a product in stock, with 0 only for a product that is out of stock. Typical use — a buy form wrapped in 1 and an «Out of stock» notice wrapped in 0, so each product shows exactly one of them.

Place it on a wrapper block. Values: 1 (in stock) or 0 (out of stock); the WooCommerce status names instock, outofstock and onbackorder are accepted as well. A product on backorder matches neither 1 nor 0, so it shows neither block — mark a separate block with onbackorder if you need one. Both spellings work: wp_in_stock and wp-in-stock. Any other value is not guessed: the block is left unconditional and the attribute is reported in the project's «Logs» tab.

WooCommerce замовлення (wp-order)

Order fields on the order details page (My Account)

wp-order="items"Альтернатива: wp_order="items"

Order items loop container — the generator expands a foreach over the order's line items (account dashboard).

wp-order="item_title"Альтернатива: wp_order="item_title"

Product title in the order row.

wp-order="item_link"Альтернатива: wp_order="item_link"

Product permalink in the order row.

wp-order="item_image"Альтернатива: wp_order="item_image"

Product image (src) in the order row.

wp-order="item_bg_image"Альтернатива: wp_order="item_bg_image"

Product image as background-image in the order row.

wp-order="item_price"Альтернатива: wp_order="item_price"

Unit price of the product at the time the order was placed.

wp-order="item_qty"Альтернатива: wp_order="item_qty"

Item quantity in the order.

wp-order="item_total"Альтернатива: wp_order="item_total"

Subtotal for the order row (unit price × quantity).

wp-order="item_number"Альтернатива: wp_order="item_number"

Position of the item in the order: 1, 2, 3 … Place it inside the wp_order="items" row — every row shows its own number.

wp-order="number"Альтернатива: wp_order="number"

Order number — short text identifier.

wp-order="date"Альтернатива: wp_order="date"

Order date in the theme's format.

wp-order="status"Альтернатива: wp_order="status"

Order status (pending, processing, completed, etc.) — label translated via WC.

wp-order="total"Альтернатива: wp_order="total"

Order total (items + shipping - discounts).

wp-order="delivery"Альтернатива: wp_order="delivery"

Shipping method selected when the order was placed.

wp-order="payment"Альтернатива: wp_order="payment"

Payment method selected when the order was placed.

Filters & Search

wp-filter-form="post_type"Альтернатива: wp_filter_form

Turns a Webflow form into a WooCommerce/WordPress filter form — submitting it filters the product/post archive by the contained fields (terms, ranges, search).

Place it on a `<form>`. The generator removes wp-filter-form and adds to the form: `action="<?php echo get_home_url() ?>/index.php#results"`, `data-action="search_filter_ajax"` and a hidden `<input type="hidden" name="post_type" value="<post_type>">`. Works together with wp-filter-query (the results container): both are on the page, the form sends GET parameters and the container builds a WP_Query from them.
wp-range-slider="field_name"Альтернатива: wp_range_slider

A range-slider UI control for a numeric filter (e.g. price). Pairs with wp-range-min / wp-range-max inputs inside the same filter form.

Place it on the slider container. Its pair marks are wp-range-min and wp-range-max on the inputs inside. Used inside wp-filter-form to filter products by a numeric attribute (price, rating and so on). The field name is usually `_price` (the WooCommerce price filter).
wp-range-min="suffix"Альтернатива: wp_range_min

The minimum-value input of a range filter — its value seeds the lower bound of the filter (and reflects the current $_GET value on reload).

Place it on an `<input>`. The generator renames the element's `id` and `name` to `min_pm_<suffix>` and fills the value from `$_GET` (or the default). Its pair is wp-range-max. Used inside wp-filter-form with wp-range-slider.
wp-range-max="suffix"Альтернатива: wp_range_max

The maximum-value input of a range filter — the upper bound, mirroring wp-range-min behaviour.

Same as wp-range-min. The generator renames `id` and `name` to `max_pm_<suffix>` and fills the value from `$_GET`.
wp-checkbox-terms="taxonomy"Альтернатива: wp_checkbox_terms

Renders a checkbox list of taxonomy terms for a filter — each checkbox toggles one term in the archive query. The first checkbox row is the template.

Place it on the checkbox template (for example `<label class="w-checkbox">`). The generator repeats the template for every term of the taxonomy, renames the `<input>` to `name="<taxonomy>[]"` (an array), adds `value="<term slug>"` and checks the box when the term is already in `$_GET["<taxonomy>"]`. Used inside wp-filter-form.
wp-radio-terms="taxonomy"Альтернатива: wp_radio_terms

Renders a radio-button list of taxonomy terms for a filter — single-select variant of wp-checkbox-terms.

The radio counterpart of wp-checkbox-terms. Place it on a `<label>` containing `<input type="radio">`. The template is repeated for every term; the `<input>` gets `name="<taxonomy>"` (a single value, not an array as with checkboxes) and `value="<slug>"`, and the current choice from `$_GET` is checked automatically.
wp-select-terms="taxonomy"Альтернатива: wp_select_terms

Renders a <select> dropdown of taxonomy terms for a filter — the option list is populated from the taxonomy at render time.

The `<select>` counterpart of wp-radio-terms/wp-checkbox-terms. Place it on a `<select>`. It gets `name="<taxonomy>"`, one `<option value="<slug>">` is printed per term, and the option matching `$_GET[<taxonomy>]` is marked `selected`.
pm__skuім'я input-поля — не атрибут

Угода про ІМ'Я input для пошуку за артикулом (SKU) всередині форми фільтра — це НЕ HTML-атрибут. Поставте name="pm__sku" на <input> всередині wp-filter-form, і генератор підключить поле до фільтрації за SKU.

Числові діапазони працюють за тією ж угодою: min_pm__<атрибут> / max_pm__<атрибут> (їх покривають мітки wp-range-min / wp-range-max).

Список бажань

Список бажань (Wishlist)

Усі атрибути вішліста в одному місці: контейнери, кнопки-дії, поля товару та директиви варіацій. Спочатку канонічний варіант — обидва альтернативні записи приймаються.

Структура та лічильник

wp="wish-list"Альтернатива: wp="wish_list"

Контейнер списку бажань (YITH Wishlist) — обгортка навколо таблиці товарів. Усередині ставиться wp="wish-items" з циклом.

div (wishlist container)
wp="wish-items"Альтернатива: wp="wish_items"/ wp="wl_full"

Цикл по товарах у wishlist — повторюється для кожного доданого товару. Усередині використовуйте wp-wl="..." для полів товару.

wrapper div (wishlist loop)
wp="wish-count"Альтернатива: wp="wish_count"/ wp="wl_count"

Лічильник товарів у wishlist поточного користувача — оновлюється при додаванні/видаленні.

span

Кнопки-дії

wp="wish-add"Альтернатива: wp="wish_add"/ wp="add_to_wl"

Кнопка «Додати до списку бажань» — ставиться на товарі або в картці товару. По кліку додає/видаляє товар через AJAX.

button, a
wp="wish-copy"Альтернатива: wp="wish_copy"/ wp_wl="copy"

Кнопка «Скопіювати до кошика» — додає товар із wishlist у cart, залишаючи його у wishlist.

button, a
wp="wish-move"Альтернатива: wp="wish_move"/ wp_wl="move"

Кнопка «Перемістити до кошика» — додає в cart і видаляє з wishlist однією дією.

button, a
wp="wish-remove"Альтернатива: wp="wish_remove"/ wp_wl="remove"

Кнопка видалення товару з wishlist — зазвичай хрестик у рядку таблиці.

button, a
wp="wish-remove-all"Альтернатива: wp="wish_remove_all"

Button that empties the whole wishlist

Поля товару (всередині циклу вішліста)

wp="wl-product-title"Альтернатива: wp_wl="product_title"

Назва товару в рядку wishlist — виводиться через get_name().

wp="wl-product-link"Альтернатива: wp_wl="product_link"

Permalink товару — пишеться в href тега <a>.

wp="wl-product-image"Альтернатива: wp_wl="product_image"

Мініатюра товару — URL підставляється в src тега img.

wp="wl-product-bg-image"Альтернатива: wp_wl="product_bg_image"

Мініатюра товару як фонове зображення рядка — URL в inline-стиль background-image.

wp="wl-product-price"Альтернатива: wp_wl="product_price"

Поточна ціна товару — якщо є знижка, виводиться ціна зі знижкою; інакше звичайна.

wp="wl-product-price-regular"Альтернатива: wp_wl="product_price_regular"

Regular (struck-through) wishlist product price. Name in the alternative format; alias of product_regular_price.

wp="wl-product-price-sale"Альтернатива: wp_wl="product_price_sale"

Sale wishlist product price. Name in the alternative format; alias of product_sale_price.

Атрибути варіацій і таксономій

wp-wish-attr="pa_size" or wp-wish-attr="pa_color"Альтернатива: wp_wish_attr

Атрибут товару WooCommerce у циклі wishlist — наприклад розмір або колір. Ім'я атрибута — pa_<slug> з налаштувань товару.

wp-wish-if-attr="pa_size"Альтернатива: wp_wish_if_attr

Умовний блок: показати тільки якщо у товара є вказаний атрибут. Якщо атрибут відсутній — блок прихований.

wp-wish-term="product_cat" or wp-wish-term="product_tag"Альтернатива: wp_wish_term

Терміни таксономії товару в циклі wishlist — категорія або тег (product_cat, product_tag).

wp-wish-if-term="product_cat"Альтернатива: wp_wish_if_term

Conditional block: shown only if the product has a term of the taxonomy

Атрибути не знайдено