Is it possible post a slide in slider by code?
-
I’d like to post a slide in slider by code.
(or csv import: Really CSV Importer Media Plus)for example:
$my_post = array( 'post_type' => 'attachment', 'post_status' => 'publish', 'post_author' => 1, 'post_attachement' => {slider image url or wp path}, 'post_parent' => {slider's post_id}, ); // post wp_insert_post( $my_post );
image is here.
https://www.dropbox.com/s/04apeotpjhdq4xw/slide.png?dl=0How can I post a slide in slider by code?
Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
- The topic ‘Is it possible post a slide in slider by code?’ is closed to new replies.