How to Convert Child Themes + Custom Post Types for Avada 5.0
20/01/2021
If you would like to convert your Custom Post Types within your Child Theme, then please follow the steps below.
How To Convert Only Custom Post Types in Child Themes
Step 1 – Add this code snippet to your child theme’s functions.php file:
Copy to Clipboard
Step 2 – Replace
Copy to Clipboard
inside the array with your own Custom Post Type name. For example:
Copy to Clipboard
Step 3 – Re-run the conversion script manually. To learn how, click here. It’s important to make sure your Child Theme is active before running the conversion.
How To Convert Custom Post Types and Default Post Types in Child Themes
Step 1 – Add this code snippet to your child theme’s functions.php file:
Copy to Clipboard
Step 2 – Replace
Copy to Clipboard
inside the array with your own Custom Post Type name. For example:
Copy to Clipboard
Step 3 – Re-run the conversion script manually. To learn how, click here. It’s important to make sure your Child Theme is active before running the conversion.