Navigation überspringen

[Gelöst] Assign content template when importing posts

This support ticket is created vor 4 Jahren. 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)

Dieses Thema enthält 0 Antworten, hat 1 Stimme.

Zuletzt aktualisiert von matthewL-7 vor 4 Jahren.

Assistiert von: Jamal.

Author
Artikel
#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)