- This topic has 6 replies, 2 voices, and was last updated 3 years, 9 months ago by .
I was wondering how i could prefill the custom fields in a new post.
i know i can use the ‘std’ parameter but i would like to make it conditionnal and dynamic.
For example in a new post, be able to get metadata of another custom post type which the POST_ID would be in a hidden field or a parameter in the URL.
Something like http://www.wpbeginner.com/wp-tutorials/how-to-add-default-content-in-your-wordpress-post-editor/ but for custom fields.
What is the best syntax or way to do this ?
Thank You for your help !
- You must be logged in to reply to this topic.