7 questions
3
votes
1
answer
62
views
How to get the index of the wp-each directive in Interactivity API Wordpress?
I am learning the interactivity API, and when I tried the wp-each directive, I noticed that there is no way to get the index of the array. e.g., if this is my array
$config = [
'fruits' => [
...
0
votes
2
answers
38
views
Wordpress interactivity to load one group, re-evaluate lightbox
I have a block which dynamically updates a group. Its working, but, if the group content contains a lightbox for an image, it doesn't work. I see the lightbox indicator, but pressing it does not ...
1
vote
1
answer
99
views
How to handle JavaScript reinitialization for dynamically loaded AJAX content with WordPress script dependencies?
I am dynamically loading content via AJAX and appending it to the frontend. While the content loads successfully, the issue arises with initializing JavaScript functionality for the newly loaded ...
0
votes
1
answer
626
views
WordPress Interactivity API how to use data-wp-bind--checked in a loop?
Is it possible to bind checked on a group of radio buttons generated in a loop and have the checked state be determined by the state?
Strangely enough in my current setup the last value is checked ...
0
votes
0
answers
66
views
Assets Not Loading or Disorganized on Page Builder Pages with Interactivity API
When using a page builder to create a page, the necessary assets (CSS, JS, etc.) do not load automatically.
I am leveraging WordPress Interactivity API SSR without introducing any additional logic.
...
0
votes
1
answer
494
views
Why does wordpress interactivity api need context?
WordPress Interactivity API was officially released with WordPress 6.5. As I've been studying this new feature, I find it intriguing, but I'm somewhat perplexed about certain aspects, particularly ...
1
vote
1
answer
497
views
Using Context with Getter Methods in WordPress Interactivity API
I'm working with the WordPress Interactivity API and I've encountered an issue with using context and getter methods. Here's my current code:
import { store, getContext } from '@wordpress/...