Oxygen Builder Restore Deleted Template

April 16, 2025

Recently I ran into a situation where a template I created for a client weeks ago was just missing.
It took me some time but eventally I could restore the Template from a backup.

I am posting this post to help anyone that runs in a similar situation.

1) Check WordPress Post Types

Oxygen templates are stored as a custom post type called ct_template.

  • Go to: wp-admin > Pages > All Pages
  • Then in the URL bar, add this at the end:
    &post_type=ct_template
    (It’ll look like this: https://yourdomain.com/wp-admin/edit.php?post_type=ct_template)

This will list all templates—including possibly ones not showing in the Oxygen UI. Sometimes they’re just unpublished or in draft.

2) Check the Trash

If someone deleted the template through WordPress:

  • Go to: wp-admin > Pages > Trash
  • Or directly in ct_template view (edit.php?post_status=trash&post_type=ct_template)

If it’s there, just restore it.

3) Restore Backup of Database Locally

For me the above 2 options did not bring up anything

Hopefully you have a backup of your WordPress site.

Specifically you will need the database.

Restore the database to your preferred database manager, for me this is phpmyadmin on my Xampp server.

In my situation I needed to create a new blank database and import the .sql file.

If this is your first time restoring a database in Xampp, before starting change the values on the php.ini file: max file upload size and max execution time. Believe me this will safe you from a headache and needing to reimport repeatedly.

Once restored head over to the wp_posts table and do a search for "ct-template" (this is the post type).

Track down the template files that was deleted and make a note of the ID.

Now head over to the wp_postmeta table.

We need to find the meta key that matches the ID that we grabbed from the wp_posts table and we need to match the meta_key that says something in the lines of "ct-template" (or in my case it said "ct-builder-json")

No click on edit and what do we have here..., the json code ready to be copied.

Copy the entire content of the json and head back over to Oxygen Builder templates.

We will need to recreate the template with a name and make sure we applying the template as we did previously.

Now go to the json dropdown and paste the code into the input box and click Save / Publish.

Your missing content should now be back in action.