The Duplicate Post function allows you to create exact copies of posts, pages, and custom post types with a single click. All content, meta fields, taxonomies, and Elementor data are duplicated.
Overview
Creating similar content or templates becomes much faster when you can duplicate existing posts. This function adds duplication capabilities throughout the WordPress admin and also provides a frontend Elementor widget for user-facing duplication.
Key Features
One-click duplication from post list or edit screen
Duplicates all content, meta, and taxonomies
Full Elementor compatibility (preserves builder data)
Role-based permissions
Frontend Elementor widget for user duplication
Configurable per post type
Customizable redirect after duplication
Setup Instructions
Step 1: Enable the Function
Navigate to Voxel Toolkit > Functions in your WordPress admin
Find Duplicate Post/Page in the list
Toggle the switch to enable the function
Click Save Changes
Step 2: Configure Post Types
In the Post Types section, select which post types can be duplicated
Common selections: Posts, Pages, and Voxel custom post types
Click Save Changes
Step 3: Configure Allowed Roles (Optional)
Control which user roles can duplicate posts:
Administrator
Editor
Author
Contributor
All Roles (allows any logged-in user)
How to Duplicate
From Post List
Go to Posts, Pages, or your custom post type list
Hover over the post you want to duplicate
Click the Duplicate link in the row actions
The duplicate will be created and you’ll be redirected to edit it
From Edit Screen
Open any existing post for editing
In the Publish meta box, find the Duplicate This link
Click to create and edit the duplicate
Frontend Duplication (Elementor Widget)
An Elementor widget is available for frontend duplication, useful for letting users copy their own listings.
Widget Settings
Setting
Description
Button Text
Text displayed on the duplicate button
Copying Text
Text shown while duplication is in progress
Title Suffix
Text appended to duplicated post title (default: “(Copy)”)
Redirect
Where to redirect after duplication (create page or same page)
Redirect Pages
You can configure specific redirect pages for each post type in the function settings. When a user duplicates a listing on the frontend, they’ll be redirected to the configured “Create” page with the new post ID.
What Gets Duplicated
Post Content: Title, content, excerpt
Post Settings: Status, comment status, ping status, menu order
Taxonomies: Categories, tags, custom taxonomies
Post Meta: All custom fields and meta data
Elementor Data: Full page builder content and settings
Voxel Fields: All Voxel custom field data
What Changes
Title: Appended with suffix (e.g., “(Copy)”)
Author: Set to current user
Status: Set to draft (unless Elementor page, which keeps original status)
Slug: WordPress auto-generates a new unique slug
Use Cases
Template Creation
Create a master template post, then duplicate it for similar content pages.
User Listing Copies
Let users duplicate their own listings to create similar ones faster.
A/B Testing
Duplicate pages to create variations for testing different layouts or content.
Troubleshooting
Duplicate Link Not Appearing
Ensure the function is enabled for the post type
Check that your user role is allowed to duplicate
Verify you’re viewing an existing post (not creating new)
Elementor Content Not Duplicating
Ensure Elementor plugin is active
Check that the original post was built with Elementor
Try regenerating CSS after duplication
Special Characters Issues
The function handles unicode characters (umlauts, accents, etc.) properly. If you see encoding issues, ensure your database uses utf8mb4 encoding.