vendredi 29 juillet 2022

how to make a rand() number become static in every post - wordpress

I make scheduled post using wp_schedule_single_event(), the value of post_content is using [shortcode]. I generate random number using rand(), and want to put it inside every post.

The problem is, i want to make the random number become permanent/static. So, Every time the post refresh, the number won't change.




Aucun commentaire:

Enregistrer un commentaire