- This topic has 2 replies, 2 voices, and was last updated 4 months, 4 weeks ago by .
When I publish a post, I would to add to the post title, the version of the document (metabox 'version').
How can I add the data from the 'versionning' field to the post title ?
Like this : POST_TITLE 'version'
$meta_boxes = [
'title' => esc_html__( 'Version', 'text-domain' ),
'id' => 'versionning',
'post_types' => ['docs'],
'context' => 'side',
'priority' => 'high',
'fields' => [
'id' => $prefix . 'version',
'name' => "Version",
'type' => 'text',
'step' => "0.01",
'required' => 1,
- You must be logged in to reply to this topic.