次のコードを使用してポッド関係を作成しようとしています:
$data = array(
"pod_id" => esc_attr(strip_tags($_POST['customMetaAutorID'])),
"field_id" => 1073,
"item_id" => $post_id,
"related_item_id" => $_POST["customMetaAutorID"],
"related_pod_id" => 0,
"related_field_id" => 0,
"weight" => 0
);
$wpdb->insert("wp_podsrel", $data);
ただし、行がテーブルに追加されますが、ページを数回更新した後、エラーが発生し始めます。
Strict Standards: Declaration of acf_taxonomy_field_walker::start_el() should be compatible with Walker::start_el(&$output, $object, $depth = 0, $args = Array, $current_object_id = 0)
これは、私が持っているのは死の白い画面だけであり、データベースを復元することしかできないことを意味します.
ポッド関係フィールド値を追加し、他のすべてを壊さない方法は何ですか?