'Before & After', 'plural' => 'Before & Afters', 'dash_title' => 'Progress', 'dash_description' => 'Manage your before and after posts', 'breadcrumb' => 'Before & Afters', 'capability_type' => ['progress', 'progress'], 'hide_children' => true, 'is_timeline' => true, 'show_feed' => true, 'show_directory'=> true, 'directory_extra'=> ['goal', 'skin-type','age'], 'hierarchical' => true, 'icon' => 'arrows-left-right', 'rewrite' => [ 'slug' => 'before-and-after', 'with_front' => false, ], 'sections' => [ 'progression' => [ 'label' => 'Progression', ] ], 'custom_order' => [ 'number' => [ 'label' => 'Number of Treatments', 'icon' => 'hash-straight', 'for' => 'progress', ] ], 'seo' => [ 'schema' => [ 'type' => 'BeforeAfter', 'name' => '{{post_title}}', 'description' => '{{post_excerpt}}', 'temporalCoverage' => '{{post_date}}/{{last_date}}', 'additionalProperty' => [ ['name' => 'Number of sessions', 'value' => '{{number.name}}'], ['name' => 'Treatment area', 'value' => '{{body-part.name}}'], ['name' => 'Tattoo style', 'value' => '{{style.name}}'], ['name' => 'Skin type', 'value' => '{{skin-type.name}}'], ['name' => 'Goal', 'value' => '{{goal.name}}'], ], 'associatedMedia' => '{{timeline_photos}}', ], 'meta' => [ 'title' => '{{style.name}} {{theme.name}} Tattoo – Before & After {{number}} Laser Removal Sessions', 'description' => 'See this {{style.name}} {{theme.name}} {{age.name}}-old tattoo before and after {{number}} laser tattoo removal treatments on the {{body-part.name}}.', ], 'archive' => [ 'type' => 'CollectionPage', 'name' => 'Tattoos Before and After Laser Tattoo Removal', ], ], 'feed' => [ 'single' => [ 'pre_title' => 'Before & After Laser Tattoo Removal', ], 'archive' => [ ], 'config' => [ 'is_gallery' => false, 'content' => 'progress', 'context' => 'progress', 'id' => [], 'class' => [], ] ], 'fields' => [ 'post_title' => [ 'type' => 'text', 'label' => 'Title', 'quickEdit' => true, 'section' => 'progression', 'for_all' => true, ], 'post_status' => [ 'type' => 'radio', 'label' => 'Status', 'options' => [ 'publish' => 'Show', 'draft' => 'Hide', 'trash' => 'Scrap', 'delete' => 'Permanently Delete' ], 'for_all' => true, ], 'post_date' => [ 'type' => 'date', 'label' => 'Date', 'for_all' => true, ], 'post_thumbnail' => [ 'type' => 'upload', 'label' => 'Image', 'quickEdit' => true, 'section' => 'progression', 'for_all' => true, ], 'person' => [ 'type' => 'taxonomy', 'taxonomy' => 'person', 'autocomplete' => true, 'label' => 'Person', 'quickEdit' => true, 'createNew' => true, 'section' => 'progression', 'hint' => 'Not public, just to make it easier to find' ], 'body-part' => [ 'type' => 'taxonomy', 'taxonomy' => 'body-part', 'label' => 'Body Part', 'autocomplete' => true, 'quickEdit' => true, 'createNew' => true, 'section' => 'progression' ], 'goal' => [ 'type' => 'taxonomy', 'taxonomy' => 'goal', 'autocomplete' => true, 'label' => 'Goal', 'quickEdit' => true, 'createNew' => true, 'section' => 'progression' ], 'timeline' => [ 'type' => 'taxonomy', 'taxonomy' => 'timeline', 'autocomplete' => true, 'label' => 'Timeline', 'quickEdit' => true, 'createNew' => true, 'section' => 'progression', 'for_all' => true, 'hidden' => true, ], 'style' => [ 'type' => 'taxonomy', 'taxonomy' => 'style', 'autocomplete' => true, 'label' => 'Tattoo Style', 'quickEdit' => true, 'createNew' => true, 'section' => 'progression' ], 'theme' => [ 'type' => 'taxonomy', 'taxonomy' => 'theme', 'autocomplete' => true, 'label' => 'Tattoo Theme', 'quickEdit' => true, 'createNew' => true, 'section' => 'progression' ], 'skin-type' => [ 'type' => 'taxonomy', 'taxonomy' => 'skin-type', 'label' => 'Skin Type', 'autocomplete' => true, 'quickEdit' => true, 'createNew' => true, 'section' => 'progression' ], 'age' => [ 'type' => 'taxonomy', 'taxonomy' => 'age', 'autocomplete' => true, 'label' => 'Age of Tattoo', 'quickEdit' => true, 'createNew' => true, 'section' => 'progression' ], 'number' => [ 'type' => 'text', 'subtype' => 'number', 'label' => 'Number of Treatments', 'quickEdit' => true, 'section' => 'progression', 'for_all' => true, 'hidden' => true, //auto calculated ], 'post_content' => [ 'type' => 'textarea', 'quill' => true, 'label' => 'Notes', 'section' => 'progression', 'for_all' => true, ], 'last_date' => [ 'type' => 'number', 'label' => 'Last Date', 'hidden' => true, 'default' => 0, 'for_all' => true, ] ], 'upload_title' => 'Upload Before & Afters', ]; } add_filter('jvbFeedItem', 'altr_progress_item', 10, 2); function altr_progress_item(string $out, string $content):string { if ($content !== 'progress') { return $out; } ob_start(); ?>