Home Forums General Issues Numeric field auto increament


Numeric field auto increament

  • How can I create a field that increases value automatically everytime a new post is published?

  • Hi @grupdel

    Thanks a bundle for reaching out to us.

    For such an approach I would recommend that you create an options page field.

    Then hook into the acf/save_post hook and always increment the value if its a new post being created.

    Hope this helps.

Viewing 2 posts - 1 through 2 (of 2 total)

You must be logged in to reply to this topic.