The Moz Q&A Forum

    • Forum
    • Questions
    • My Q&A
    • Users
    • Ask the Community

    Welcome to the Q&A Forum

    Browse the forum for helpful insights and fresh discussions about all things SEO.

    1. SEO and Digital Marketing Q&A Forum
    2. Categories
    3. Web Design
    4. How to export Wordpress comments ONLY to a new domain

    How to export Wordpress comments ONLY to a new domain

    Web Design
    2 2 3.7k
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as question
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • seocuppa
      seocuppa last edited by

      Hi Guys,

      We have a bit of situation here. We have a website (let's say it is www.oldsite.com) where we had more than 2000 posts. There arose a need whereby we had to move some 60-70 posts from this oldsite.com to another domain of ours (www.newsite.com). So, here is what we did:

      1. Move those 60-70 posts manually from oldsite.com to newsite.com
      2. Did a 301 redirect of each of those 60-70 posts from oldsite.com to newsite.com. Google has now started to rank the posts from the newsite.com for this. That's all good till now.
      3. Now, here comes the situation. We also want to move the comments from some of those posts of oldsite.com (some 10-12 posts out of those 60-70) to the respective posts of newsite.com.

      How do we do that? Do note that we are pretty comfortable with databases and to some extent PHP. Please help.

      1 Reply Last reply Reply Quote 0
      • KaneJamison
        KaneJamison last edited by

        Hey Shalin,

        Assuming you have a large number of comments to deal with on those pages, the best option would probably be to delete those manual posts, then import the full 2000 posts using Wordpress's native import/export funtions, and then delete the posts you don't want. This process should only take 1-3 hours and is easier than your other options below.

        It's possible to get into SQL and export just the comments table, but because you've manually created those new posts, you would have to manually rewrite all of the post ids that the comments are tied to, and delete all of the irrelevant comments after that.. Plus, the possibility of a small typo messing up the import is high.

        1 Reply Last reply Reply Quote 1
        • 1 / 1
        • First post
          Last post
        • How to Redirect Old Domain to a New Domain?
          MickEdwards
          MickEdwards
          0
          3
          116

        • 2 or more wordpress installs on 1 domain
          nomad-202323
          nomad-202323
          0
          3
          124

        • Learning Center on Subdomain or New Domain
          TinaMumm
          TinaMumm
          0
          3
          605

        • Internal links, new pages & Domain Authority
          gfiedel
          gfiedel
          0
          5
          215

        • What is the best way to point newly built website on new domain name to the original more well known domain?
          EGOL
          EGOL
          0
          4
          387

        • New site - same host domain?
          Dr-Pete
          Dr-Pete
          0
          5
          342

        • How do you deal with comment spam: wordpress?
          ThompsonPaul
          ThompsonPaul
          0
          10
          1.2k

        • For a new business which would be the best domain name?
          whitbycottages
          whitbycottages
          0
          9
          882

        Get started with Moz Pro!

        Unlock the power of advanced SEO tools and data-driven insights.

        Start my free trial
        Products
        • Moz Pro
        • Moz Local
        • Moz API
        • Moz Data
        • STAT
        • Product Updates
        Moz Solutions
        • SMB Solutions
        • Agency Solutions
        • Enterprise Solutions
        • Digital Marketers
        Free SEO Tools
        • Domain Authority Checker
        • Link Explorer
        • Keyword Explorer
        • Competitive Research
        • Brand Authority Checker
        • Local Citation Checker
        • MozBar Extension
        • MozCast
        Resources
        • Blog
        • SEO Learning Center
        • Help Hub
        • Beginner's Guide to SEO
        • How-to Guides
        • Moz Academy
        • API Docs
        About Moz
        • About
        • Team
        • Careers
        • Contact
        Why Moz
        • Case Studies
        • Testimonials
        Get Involved
        • Become an Affiliate
        • MozCon
        • Webinars
        • Practical Marketer Series
        • MozPod
        Connect with us

        Contact the Help team

        Join our newsletter
        Moz logo
        © 2021 - 2026 SEOMoz, Inc., a Ziff Davis company. All rights reserved. Moz is a registered trademark of SEOMoz, Inc.
        • Accessibility
        • Terms of Use
        • Privacy