Support

Account

Home › Forums › General Issues › How can we create an auto increment id on custom post types with plugin

Solving

How can we create an auto increment id on custom post types with plugin

  • Hi

    Is there any possibility of adding auto increment id’s with custom post type. Like number 1 for 1st invoice and number 2 for 2nd invoice.

    I was building an Invoice generation tool for a client and messed up here !!

    Thanks for your help !!

    Anirudh

  • HI @anibabbar,

    As a workaround to this issue, I would recommend you create a readonly number field for your post type. You can then create some logic within the acf/load_field filter with a counter to auto increment the value on the field each time the field is called.

  • Hello!
    I know that the post is a bit old.
    but could you explain how I generate an automatic increment id?
    is for a real estate site.
    If you could give me some guide or tutorial I would appreciate it
    thank you
    regards

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

The topic ‘How can we create an auto increment id on custom post types with plugin’ is closed to new replies.