BP Code Snippets
[resolved] How move snippets to new domain (2 posts)

  1. Kerry Carron
    Posted 3 years ago #

    I just started using the snippets plugin and I decided to move my project to a new domain. Is there a way I can export the snippets and import them back in on the new sites?


  2. imath
    Plugin Author

    Posted 3 years ago #


    wow ! well snippets is a custom post type, so you'll find them in your {table_prefix}posts table.
    then you should also have datas in {table_prefix}postmeta and in {table_prefix}terms / taxonomy and terms relationships as it uses custom taxonomies. So i guess there's a way but it's a rough one !

    If i were you i would try to change the domain for all the database by exporting an sql file and replacing each occurence of your old domain by your new one. Once done, i would delete the content i don't need anymore and start from here.

    You should first test this on a local environment by playing with your hosts file ( yourdomain.com) and add a virtual host on your apache config.

    Hope you'll achieve your goal.

Topic Closed

This topic has been closed to new replies.

About this Plugin

  • BP Code Snippets
  • Frequently Asked Questions
  • Support Threads
  • Reviews

About this Topic