Saltar navegación

[Resuelto] Assign content template when importing posts

This support ticket is created hace 4 años. 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)

Este tema contiene 0 respuestas, tiene 1 mensaje.

Última actualización por matthewL-7 hace 4 años.

Asistido por: Jamal.

Autor
Mensajes
#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)