I’m trying to figure out how to number each copy of a repeatable field, however I’m not having much luck finding out how.
I’ve tried directly echoing out the_index(); and get_the_index(); but these don’t work as expected – they seem to ‘cut out’ after the second copy of a repeating field.
So with that not working I tried to do another method which used the below code, but yielded the same result. Is this something that I’m doing wrong or something external that’s messing stuff up – or is it just not something that’s been considered?
It’s not detrimental to anything, I just thought it’d be a nice-to-have to have the slides numbered. It makes it a little easier to know what order they will be displayed on the front-end site for some.
You must be logged in to reply to this topic.