Voxel Toolkit 1.6.1 is Available!

Duplicate Post Widget

The Duplicate Post widget adds a button that allows users to duplicate posts directly from the frontend. Users can quickly create copies of listings, templates, or any content they have permission to duplicate.


Overview

Enable users to duplicate posts without accessing the WordPress admin. The widget displays a button that creates a copy of the current post and optionally redirects the user to edit the new copy. Role-based permissions control who can duplicate content.

Key Features

  • One-click post duplication
  • Role-based access control
  • Post type restrictions
  • Custom button text
  • Redirect options after duplication
  • Custom title suffix for copies
  • Full button styling controls

Setup Instructions

Step 1: Enable the Function

  1. Navigate to Voxel Toolkit > Functions in your WordPress admin
  2. Find Duplicate Post in the list
  3. Toggle the switch to enable the function
  4. Configure which post types can be duplicated
  5. Set allowed user roles
  6. Click Save Changes

Step 2: Enable the Widget

  1. Navigate to Voxel Toolkit > Widgets
  2. Find Duplicate Post in the list
  3. Toggle the switch to enable the widget
  4. Click Save Changes

Step 3: Add to Template

  1. Edit your single post template in Elementor
  2. Search for Duplicate Post (VT)
  3. Drag the widget to your desired location
  4. Configure button text and redirect options
  5. Save the template

Widget Settings

Content Settings

SettingDescriptionDefault
Button TextText displayed on the duplicate button“Duplicate Post”
Redirect After DuplicateWhere to go after duplicationCreate/Edit Page
Copying TextText shown while duplication is in progress“Duplicating…”
Title SuffixText added to the duplicated post title“(Copy)”

Redirect Options

  • Create/Edit Page – Redirect to the Voxel create/edit form for the new post
  • Current Page – Stay on the current page after duplication

Styling Options

Button Style

  • Typography (font family, size, weight)
  • Text color (normal and hover)
  • Background color/gradient (normal and hover)
  • Border settings
  • Border radius
  • Box shadow
  • Padding
  • Hover animation
  • Alignment (left, center, right)

Permission Settings

Configure who can duplicate posts in Voxel Toolkit > Functions > Duplicate Post:

Post Types

Select which post types can be duplicated. The button will only appear on enabled post types.

Allowed Roles

Choose which user roles can duplicate posts:

  • Administrator
  • Editor
  • Author
  • Contributor
  • All Roles (allows any logged-in user)

Use Cases

Listing Templates

Allow business owners to duplicate their own listings to create similar ones quickly.

Event Duplication

Let event organizers duplicate past events to create recurring or similar events.

Product Variations

Enable sellers to duplicate product listings to create variations with minor differences.

Content Templates

Create template posts that users can duplicate and customize.


Troubleshooting

Button Not Appearing

  • Check that the Duplicate Post function is enabled
  • Verify the post type is in the allowed list
  • Ensure the user is logged in
  • Check that the user’s role is allowed to duplicate

Shows “Duplication Disabled”

  • Enable the Duplicate Post function in Toolkit settings

Shows “Not Enabled for This Post Type”

  • Add this post type to the allowed post types in function settings

Shows “Login Required”

  • Users must be logged in to duplicate posts
  • Check that the user’s role is in the allowed roles list
AI Assistant