-
How do I make my own title?
Here look I add to the site news automatically from my own rss feeds and add arbitrary fields, or rather it turns out after adding a record its update.
How to make the title update on its own unique, I am ready to prescribe it also in my feeds.
Here is a piece of my code for an example, it would be necessary to add there a unique title, which is written manually in the admin panel.
$post_id = wp_insert_post(array(
'post_title' => $title,
'post_content' => $description,
'post_type' => 'post',
));
if ($post_id) {
$text = (string) $item->text;
update_post_meta($post_id, 'text', $text);
}
The ticket ‘How do I make my own title?’ is closed to new replies.