I have created a php script to insert post programmatically. I have created a template with divi and it needs specific post settings for primary category and sidebar position.
When I insert the post with wp_insert_post I assign the specific meta:
“meta_input” => array (“td_post_theme_settings” => ‘a: 2: {s: 14: “td_primary_cat”; s: 1: “8”; s: 19: “td_sidebar_position”; s: 10: “no_sidebar”; } ‘)
The same meta that I add if I do it manually in the post settings inside the post edition.
Do I need to insert some other record? do I have to run a secondary routine of the theme?
Thanks in advance for the help
Hi, this is a custom implementation so is not related to the support team (support policy), and if you want that our developers to check or implement this code, then you need to make a request to custom work https://tagdiv.com/web-development-services/ there are developers that can help you.
Thank you for your understanding!
Well, it seems like a bad policy on your part, maybe otherwise they would get more community, and that more developers would lean towards their template. By the way I have found a solution, that if it should have occurred to the support department. Set the default post settings options to those that new posts must have, which are the ones that are entered via script. If there were a case in which a manual post was inserted, those settings could already be changed. I write it in case a user arrives with the same problem, to be able to help him.
Please review their support policy. Happy day