Skip Navigation

[Resolved] Assign content template when importing posts

This support ticket is created 4 years ago. There's a good chance that you are reading advice that it now obsolete.
Sun Mon Tue Wed Thu Fri Sat
9:00 – 13:00 9:00 – 13:00 9:00 – 13:00 9:00 – 13:00 - - 9:00 – 13:00
14:00 – 18:00 14:00 – 18:00 14:00 – 18:00 14:00 – 18:00 - - 14:00 – 18:00

Supporter timezone: Africa/Casablanca (GMT+01:00)

This topic contains 0 replies, has 1 voice.

Last updated by matthewL-7 4 years ago.

Assisted by: Jamal.

Author
Posts
#1949489

How can I set the content template when I am importing posts into the database, so it bypasses the usual hook when a post is imported.
Is there a custom field I should set?

So normally when a CPT "offer" is created it will automatically set the default Toolset content template. However due to the way they are being imported, this is not being set.
(do_action calls in wp_insert_post is disabled)