ShahiLanding

How to Duplicate a Landing Page

This step-by-step tutorial shows you how to quickly duplicate an existing landing page to create variations or new campaigns.

What You’ll Learn

By the end of this tutorial, you’ll know how to:

    1. Duplicate a landing page via dashboard
    2. Clone pages with WP-CLI
    3. Create variations for A/B testing
    4. Duplicate with all settings
    5. Manage multiple page versions
    6. Time Required: 5-10 minutes
      Difficulty: Beginner
      Prerequisites: At least one existing landing page

      Why Duplicate Landing Pages?

      Common Use Cases

    7. πŸ§ͺ A/B Testing: Create variants to test
    8. 🎯 Multiple Campaigns: Same design, different content
    9. 🌍 Localization: Translate for different languages
    10. πŸ“ Templates: Reuse successful designs
    11. πŸ”„ Seasonal Campaigns: Holiday vs regular versions
    12. 🎨 Client Work: Same structure, different branding
    13. Benefits

    14. ⚑ Save time: No need to rebuild from scratch
    15. βœ… Consistency: Keep proven designs
    16. 🎯 Quick testing: Launch variations faster
    17. πŸ“Š Compare performance: Same base, different copy
    18. Method 1: Dashboard Quick Duplicate

      The easiest way to duplicate a page.

      Step 1: Go to Landing Pages List

    19. Log into WordPress admin
    20. Navigate to Landing Pages (or ShahiLandin β†’ All Pages)
    21. You’ll see list of all landing pages
    22. Step 2: Find Page to Duplicate

      Locate the landing page you want to copy.

      Example: “Free Guide Download Page”

      Step 3: Hover and Click “Duplicate”

    23. Hover over the page title
    24. Quick actions appear below
    25. Click Duplicate
    26. `
      ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
      Free Guide Download Page
      Edit | Quick Edit | Trash | Duplicate | View | Statistics
      ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
      `

      Step 4: Page Duplicated

      You’ll see a success message:

      `
      βœ… Landing page duplicated successfully!
      `

      A new page appears in the list:

      `
      Free Guide Download Page (Copy)
      `

      Step 5: Customize the Duplicate

      Click Edit on the new page:

    27. Change title: “Free Guide Download Page (Copy)” β†’ “Spring Sale Guide”
    28. Update slug: free-guide-copy β†’ spring-sale-guide
    29. Modify content (HTML, CSS, JS) as needed
    30. Update meta description
    31. Click Update
    32. What Gets Duplicated?

      βœ… HTML content
      βœ… CSS styles
      βœ… JavaScript code
      βœ… Page settings (rendering mode, etc.)
      βœ… SEO meta data
      βœ… Analytics goals
      βœ… Performance settings

      ❌ Statistics/analytics data
      ❌ Publish status (duplicate is draft)
      ❌ Comments (if enabled)

      Method 2: WP-CLI (Advanced)

      Duplicate pages via command line – great for automation.

      Step 1: Open Terminal/SSH

      Connect to your server via SSH or use local terminal:

      `powershell

      Navigate to WordPress root

      cd C:\xampp\htdocs\shahitest
      `

      Step 2: Find Page ID to Duplicate

      List all landing pages:

      `bash
      wp shahi list –fields=ID,title,status
      `

      Output:
      `
      +—–+—————————+——–+
      | ID | title | status |
      +—–+—————————+——–+
      | 123 | Free Guide Download Page | publish|
      | 124 | Webinar Registration | publish|
      | 125 | Product Launch | draft |
      +—–+—————————+——–+
      `

      Note the ID you want to duplicate (e.g., 123).

      Step 3: Duplicate with WP-CLI

      `bash
      wp shahi duplicate 123 –title=”Spring Sale Guide”
      `

      Success message:
      `
      Success: Landing page duplicated. New ID: 126
      `

      Optional Flags

      `bash

      Duplicate with custom title

      wp shahi duplicate 123 –title=”Black Friday Sale”

      Duplicate with custom slug

      wp shahi duplicate 123 –title=”New Page” –slug=”new-page-url”

      Duplicate and immediately publish

      wp shahi duplicate 123 –title=”New Page” –status=publish

      Duplicate without analytics goals

      wp shahi duplicate 123 –title=”New Page” –skip-goals
      `

      Bulk Duplication

      Duplicate multiple pages:

      `bash

      Duplicate pages 123, 124, 125

      for id in 123 124 125; do
      wp shahi duplicate $id –title=”Copy of Page $id”
      done
      `

      Method 3: Duplicate for A/B Testing

      Create variants specifically for experiments.

      Step 1: Create Experiment

    33. Go to Landing Pages β†’ Your page
    34. Scroll to A/B Testing meta box
    35. Click Create New Experiment
    36. Step 2: Add Variant by Duplication

    37. In experiment setup, click Add Variant
    38. Choose Duplicate Existing Page
    39. Select: “Use current page as template”
    40. Enter variant name: “Variant B – Short Form”
    41. Click Create Variant
    42. Step 3: Variant Created Automatically

      ShahiLandin creates a duplicate with:

    43. Same content as original
    44. Marked as experiment variant
    45. Linked to experiment
    46. Ready to edit
    47. Step 4: Edit Variant

    48. Click Edit Variant button
    49. Make changes (e.g., shorter form, different headline)
    50. Click Update
    51. Return to experiment setup
    52. Step 5: Configure and Launch Experiment

    53. Set traffic split: 50% / 50%
    54. Set conversion goal: form_submit
    55. Set duration: 14 days
    56. Click Start Experiment
    57. See full guide: How to Run A/B Tests

      Method 4: Duplicate with REST API

      Programmatically duplicate pages.

      Endpoint

      `
      POST /wp-json/shahilandin/v1/pages/{id}/duplicate
      `

      Authentication

      Use Application Password or OAuth.

      Request Example

      `javascript
      // JavaScript example
      fetch(‘https://yoursite.com/wp-json/shahilandin/v1/pages/123/duplicate’, {
      method: ‘POST’,
      headers: {
      ‘Authorization’: ‘Bearer YOUR_TOKEN’,
      ‘Content-Type’: ‘application/json’
      },
      body: JSON.stringify({
      title: ‘Duplicated Landing Page’,
      slug: ‘duplicated-page’,
      status: ‘draft’
      })
      })
      .then(response => response.json())
      .then(data => {
      console.log(‘New page ID:’, data.id);
      console.log(‘New page URL:’, data.link);
      });
      `

      cURL Example

      `bash
      curl -X POST \
      https://yoursite.com/wp-json/shahilandin/v1/pages/123/duplicate \
      -H ‘Authorization: Bearer YOUR_TOKEN’ \
      -H ‘Content-Type: application/json’ \
      -d ‘{
      “title”: “Duplicated Page”,
      “slug”: “duplicated-page”,
      “status”: “draft”
      }’
      `

      Response

      `json
      {
      “id”: 126,
      “title”: “Duplicated Page”,
      “slug”: “duplicated-page”,
      “link”: “https://yoursite.com/landing/duplicated-page/”,
      “status”: “draft”,
      “original_id”: 123,
      “duplicated_at”: “2024-11-28T10:30:00”
      }
      `

      Method 5: Export/Import Approach

      Duplicate by exporting and re-importing.

      Step 1: Export Page as JSON

      `bash
      wp shahi export 123 –format=json > page-123.json
      `

      Or use dashboard:

    58. Edit landing page
    59. Tools β†’ Export
    60. Choose format: JSON
    61. Download file
    62. Step 2: Edit JSON (Optional)

      Open page-123.json and modify:

      `json
      {
      “title”: “New Landing Page”,
      “slug”: “new-landing-page”,
      “content”: {
      “html”: “…”,
      “css”: “…”,
      “js”: “…”
      }
      }
      `

      Step 3: Import as New Page

      `bash
      wp shahi import page-123.json
      `

      Or use dashboard:

    63. Landing Pages β†’ Import
    64. Upload page-123.json
    65. Click Import
    66. New page created with same content.

      Best Practices

      Naming Conventions

      Use clear, descriptive names:

      βœ… Good:

    67. “Product Launch – Version A”
    68. “Product Launch – Version B”
    69. “Spring 2024 Campaign”
    70. “Summer Sale – Mobile Optimized”
    71. ❌ Bad:

    72. “Landing Page Copy”
    73. “Page 1 Copy 2”
    74. “Untitled (Copy)”
    75. “Test”
    76. Organization Tips

    77. Use categories/tags:
    78. `
      Category: A/B Tests
      Tag: Product Launch, 2024
      `

    79. Prefix with campaign:
    80. `
      [Summer Sale] Free Guide
      [Summer Sale] Webinar Registration
      [Summer Sale] Product Demo
      `

    81. Date in title (if time-sensitive):
    82. `
      Black Friday 2024 – Landing Page
      Q1 2024 Campaign
      `

      Cleanup Old Duplicates

      Regularly delete unused duplicates:

      `bash

      List draft pages older than 30 days

      wp post list –posttype=shahilanding –poststatus=draft –postdate_before=”30 days ago”

      Delete them

      wp post delete $(wp post list –posttype=shahilanding –poststatus=draft –postdate_before=”30 days ago” –format=ids)
      `

      Creating Template Pages

      Turn successful pages into reusable templates.

      Step 1: Create “Template” Category

    83. Landing Pages β†’ Categories
    84. Add new category: “Templates”
    85. Description: “Reusable landing page templates”
    86. Step 2: Mark Page as Template

    87. Edit your best-performing landing page
    88. Assign to Templates category
    89. Add prefix to title: “[TEMPLATE] Lead Gen Form”
    90. Add note in content:
    91. Step 3: Duplicate from Template

      When starting new project:

    92. Find template page
    93. Click Duplicate
    94. Remove “[TEMPLATE]” from title
    95. Search and replace placeholders
    96. Customize for new campaign
    97. Template Ideas

      Create templates for common use cases:

    98. πŸ“‹ Lead generation form
    99. πŸ“Ή Webinar registration
    100. πŸ“š eBook download
    101. πŸ’Ό Service inquiry
    102. 🎁 Contest entry
    103. πŸ“§ Newsletter signup
    104. πŸ›’ Product launch
    105. πŸ“ž Free consultation
    106. Bulk Duplication

      Create many duplicates at once.

      Using WP-CLI Loop

      `bash

      Create 10 variants of page 123

      for i in {1..10}; do
      wp shahi duplicate 123 –title=”Campaign Variant $i” –slug=”campaign-variant-$i”
      done
      `

      Using Custom Script

      Create duplicate-pages.php:

      `php
      pageid = 123;

      foreach ($cities as $city) {
      $newpageid = wpinsertpost([
      ‘posttype’ => ‘shahilanding’,
      ‘post_title’ => “Landing Page – $city”,
      ‘post_status’ => ‘draft’,
      ‘postcontent’ => getpostfield(‘postcontent’, $basepageid)
      ]);

      // Copy meta data
      $meta = getpostmeta($basepageid);
      foreach ($meta as $key => $values) {
      foreach ($values as $value) {
      addpostmeta($newpageid, $key, maybe_unserialize($value));
      }
      }

      echo “Created page for $city: ID $newpageid\n”;
      }
      `

      Run with WP-CLI:

      `bash
      wp eval-file duplicate-pages.php
      `

      Troubleshooting

      “Duplicate Button Not Showing”

      Causes:

    107. User role doesn’t have permission
    108. Plugin conflict
    109. Solution:

    110. Check user capabilities: editposts, editshahi_landings
    111. Try WP-CLI method instead
    112. Contact support
    113. “Duplicate Has Missing Images”

      Problem: Images don’t appear in duplicate

      Cause: Images linked to specific post ID

      Solution:
      Re-upload images or use Media Library images (not post-specific).

      “Slug Already Exists”

      Problem: Can’t use same slug

      Solution:
      WordPress auto-appends -2, -3, etc. Or manually set unique slug.

      “Out of Memory Error”

      Problem: Page too large to duplicate

      Solution:
      Increase PHP memory limit:

      `php
      // wp-config.php
      define(‘WPMEMORYLIMIT’, ‘256M’);
      `

      Summary

      You’ve learned how to:

    114. βœ… Duplicate via dashboard (quick method)
    115. βœ… Duplicate with WP-CLI (command line)
    116. βœ… Create A/B test variants
    117. βœ… Duplicate via REST API (programmatic)
    118. βœ… Export/import approach
    119. βœ… Create reusable templates
    120. βœ… Bulk duplicate multiple pages
    121. βœ… Organize and manage duplicates
    122. Now you can quickly create landing page variations!

      Related Tutorials

    123. How to Run A/B Tests
    124. How to Create Your First Landing Page
    125. WP-CLI Commands Reference

Need Help? Check documentation or contact support.

Share this article

Was this article helpful?

Help us improve our documentation

Still need help?

Our support team is ready to assist you with personalized guidance for your workspace.

Submit a support ticket