Guten Abend.
Ich erstelle mit einem Plugin automatisch Beiträge aus einer Datenbank.
Es funktioniert wunderbar. Nun meine Frage.
Kann man in dem Array auch das Seo Fokus-Keyword mit übergeben?
Wenn ja, wie würde die Variable lauten?
Ich kann im Netz leider nichts dazu finden
Viele Grüße Sabbel
PHP
$page = array(
'post_author' => $user_id,
'post_content' => $strContent,
'post_content_filtered' => '',
'post_title' => "Unterseite".$arrResult->varia,
'post_excerpt' => '',
'post_status' => 'publish',
'post_type' => 'cities',
'publicly_queryable' => true,
'comment_status' => '',
'ping_status' => '',
'post_password' => '',
'to_ping' => '',
'pinged' => '',
'post_parent' => 0,
'menu_order' => 0,
'guid' => '',
'import_id' => 0,
'context' => '',
);
wp_insert_post($page);
Alles anzeigen