Site logo

Archived topic

Create Elements via php in childtheme

1 reply · Started by Julian on April 23, 2020

Viewing posts 1–2 of 2

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.

This archived topic is closed to new replies.