Sauter la navigation

[Résolu] Assign content template when importing posts

This support ticket is created Il y a 4 années. 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)

Ce sujet contient 0 réponses, a 1 voix.

Dernière mise à jour par matthewL-7 Il y a 4 années.

Assisté par: Jamal.

Auteur
Publications
#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)