Viewing 1 replies (of 1 total)
  • Plugin Author Mark Jaquith

    (@markjaquith)

    Here’s some sample code. You’d have to write code to read the CSV (there are PHP functions to do that), loop through the rows, and dynamically insert the title and URL where test and https://example.com/ are:

    $id = wp_insert_post( array( 'post_title' => 'test', 'post_status' => 'publish' ) );
    CWS_PageLinksTo::$instance->set_link( $id, 'https://example.com/' );
Viewing 1 replies (of 1 total)
  • The topic ‘How can I mass import posts with link in title to first link of post.’ is closed to new replies.