Echo Number/Increment on Repeated Fields?

Home Forums WPAlchemy Echo Number/Increment on Repeated Fields?

This topic contains 0 replies, has 1 voice, and was last updated by  alexrogahn 1 year, 11 months ago.

Viewing 1 post (of 1 total)
  • Author
    Posts
  • #2496

    alexrogahn
    Participant

    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?

    https://gist.github.com/4186307

    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.

    • This topic was modified 1 year, 11 months ago by  alexrogahn. Reason: Code was formatted wrong
    • This topic was modified 1 year, 11 months ago by  alexrogahn.
Viewing 1 post (of 1 total)

You must be logged in to reply to this topic.