Voxel Toolkit 1.6.1 is Available!

Duplicate Post/Page

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

  1. Navigate to Voxel Toolkit > Functions in your WordPress admin
  2. Find Duplicate Post/Page in the list
  3. Toggle the switch to enable the function
  4. Click Save Changes

Step 2: Configure Post Types

  1. In the Post Types section, select which post types can be duplicated
  2. Common selections: Posts, Pages, and Voxel custom post types
  3. 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

  1. Go to Posts, Pages, or your custom post type list
  2. Hover over the post you want to duplicate
  3. Click the Duplicate link in the row actions
  4. The duplicate will be created and you’ll be redirected to edit it

From Edit Screen

  1. Open any existing post for editing
  2. In the Publish meta box, find the Duplicate This link
  3. 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

SettingDescription
Button TextText displayed on the duplicate button
Copying TextText shown while duplication is in progress
Title SuffixText appended to duplicated post title (default: “(Copy)”)
RedirectWhere 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.

AI Assistant