How to randomize published date for WordPress custom post type

I have tried the following answer to randomize post published date:
Update existing post dates to random dates

It worked but I need to randomize custom post type. How do I do that?
Example: post_type=portfolio

Thank you!

Read more here:: How to randomize published date for WordPress custom post type

Leave a Reply

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