Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- $myembed = htmlentities( (string)$feed_item->embed ); // hercules line
- $feed_item->desc = "ID: <h2>{$feed_item->title}</h2><br>\n{$myembed}<br>\n{$feed_item->desc}"; // hercules line
- // $feed_item->desc .= "<h2>{$feed_item->title}</h2>{$myembed}<br>{$feed_item->desc}";
- /* hercules 2 end */
- $post = array(
- 'post_author' => '1',
- 'post_status' => $_POST['status'],
- 'post_type' => $cpt,
- 'post_title' => (string) $feed_item->title,
- 'post_content' => (string) $feed_item->desc
- );
- $post_id = wp_insert_post( $post );
- update_post_meta($post_id, 'sponsor', (string)$_POST['source']);
- update_post_meta($post_id, 'videoID', (string)$feed_item->id);
- $post = array( // hercules line
- 'post_content' => $feed_item->desc, // hercules line
- ); // hercules line
- wp_insert_post($post_id); // hercules line
Add Comment
Please, Sign In to add comment