[Plugin: TDO Mini Forms] error in upgrading 0.13.7 in attachment.
-
before i upgrade tdf mini form from 0.13.6 to 0.137
i can call attached image using:
<?php //Get images attached to the post $args = array( 'post_type' => 'attachment', 'post_mime_type' => 'image', 'numberposts' => -1, 'order' => 'ASC', 'post_status' => null, 'post_parent' => $post->ID ); $attachments = get_posts($args); if ($attachments) { foreach ($attachments as $attachment) { $img = wp_get_attachment_url( $attachment->ID ); break; } <?php echo $img; ?>
the output will be:
https://www.mysite.com/wp-uploads/myimage.jpgbut after upgrading: the output become:
https://www.mysite.com/wp-uploads/https://www.mysite.com/wp-uploads/myimage.jpg
please help me…
thank in advance…
- The topic ‘[Plugin: TDO Mini Forms] error in upgrading 0.13.7 in attachment.’ is closed to new replies.