Join GitHub today
GitHub is home to over 40 million developers working together to host and review code, manage projects, and build software together.Sign up
Describe the feature you'd like to see included in Oxygen.
Not all repeaters are going to be from posts, some will be ACF fields etc, where this function doesn't make sense, so this would need to be a checkbox option the user can select if they wish to have more control.
Here is an example tutorial of this function being used with easy posts and the benefits of having dynamically generated classes for each post. The output code, in this example, looks like something like this. Very easy to style based on info about the post.
What are the use cases for this feature?
With easy posts, we can write in the php function ourselves, but not with the repeater. I think it would be useful to include as an option.
Examples of this feature or functionality.
Far from ideal solution, but if you need post classes on a div inside the repeater (not the main div we need, but a child of it) then you can make use of the shortcode wrapper inside the repeater with something like this..
Then you can at least target elements inside the repeater based on some post classes.
Markup would be...