Hi,
This is likely a really simple solution but I haven't been able to spot it in the forum posts - I'd appreciate some advice.
I have a "Tramp Log" CPT which records a history of past tramping trips (hiking trips).
One of the custom fields when creating a new "Tramp Log" post is the post_title of a tramp listed in the Tramps CPT.
I want admin users to have the ability to create a new Tramp Log post that pre-populates the name of the Tramp in the new post being created:
https://example.com/wp-admin/post-new.php?post_type=tramp-log&tramp_name=Example Tramp Name
Question:
How can I retrieve the value of the tramp_name
URL variable and preapply it to the tramp_name
custom field before the create new post page is displayed?
Thanks in advance!