Skip to main content
13 events
when toggle format what by license comment
Jun 12, 2019 at 19:48 answer added Marc timeline score: 0
S Jun 12, 2019 at 19:28 history suggested Marc CC BY-SA 4.0
Updated readability and clarified the question
Jun 12, 2019 at 19:27 review Suggested edits
S Jun 12, 2019 at 19:28
Mar 6, 2017 at 14:35 history tweeted twitter.com/StackWordPress/status/838759827627196421
May 14, 2016 at 14:34 comment added kaiser I fixed the code readability for you. Please take this as example for further questions – the easier to read, the better and more answers you will get. Aside from that, "I change it like this, but no way…" is hardly an error description. No one sees your screen or will replicate your setup. Please be a bit more verbose. Just imagine you know nothing about your problem, then read your question and try to think what you understand.
May 14, 2016 at 14:32 history edited kaiser CC BY-SA 3.0
Fixes Readability
May 14, 2016 at 14:26 comment added Guenfood I've just edit my question. Sorry !
May 14, 2016 at 14:26 history edited Guenfood CC BY-SA 3.0
added 388 characters in body
May 13, 2016 at 20:25 comment added kaiser Please add additional efforts as edits to your question. That's not readable as comment.
May 13, 2016 at 14:04 comment added Guenfood media_sideload_image() is to download an image from the specified URL and attach it to a post. But i don't want to use this image as a featured image. Just display it in post_id sidebar. I've got another image for featured image.
May 13, 2016 at 13:14 comment added Guenfood I change it like this, but no way... function downloadcouv() { global $wp_query; $post_id = $wp_query->queried_object->ID; $lien = get_post_meta($post_id, "couv", true); $desc = $post_title; $couv = media_sideload_image($lien, $post_id, $desc); add_post_meta($post_title, "couv2", $couv, true); } add_action( 'save_post', 'downloadcouv' );
May 13, 2016 at 12:59 comment added kaiser Take a look at media_sideload_image().
May 13, 2016 at 12:41 history asked Guenfood CC BY-SA 3.0