Archived topic
Create Elements via php in childtheme
1 reply · Started by Julian on April 23, 2020
Hi there,
is it possible to add elements via php in a child-theme functions.php?
I use the same child-theme for a few websites and dont want to add the elements manually.
I know that i can export / import the elements, but thats to manually either^^
Best Regards,
Julian
Hi there,
Elements are a Custom Post Type - so they need to be imported like any other Post would be.
Personally i would just package up my 'starter' site using a Duplicator plugin and import that for each new build.