str_pad
is the function you’re looking for.
echo str_pad( get_the_ID(), 5, "0", STR_PAD_LEFT);
This should do the trick.
str_pad
is the function you’re looking for.
echo str_pad( get_the_ID(), 5, "0", STR_PAD_LEFT);
This should do the trick.