post id or permalink auto-incrementing number and reset everyday

i wanna have a permalinks like this:

*.com/2019/10/02/0001

*.com/2019/10/02/0002

*.com/2019/10/02/0003

*.com/2019/10/02/nnnn

.

and the next they the number should be reset to 0001, and start again.

or the other thing i think it can be done is to edit the logic of the $post_id, and change it to this format: “year-month-day-number”
without any dashes of-course. and the number should increase from 0001. and the next day it start again from 0001.

what shall i do fellas? or any plugins to do this?

Read more here:: post id or permalink auto-incrementing number and reset everyday

Leave a Reply

Your email address will not be published. Required fields are marked *