samedi 18 juin 2016

Please Help! Wordpress Spider Catalog Images. Only thumbnails links are being referenced but I need the full link instead

I have a series of images that the Spider Catalog plug is using. However when it requests theses photo's only the thumbnail versions show. But I want the original images to show. Send help!

Thanks in advance

                $small_images_str = '';
                $small_images_count = 1;
                $imgurl = explode(";;;", $row->image_url);
                foreach ($imgurl as $img) {

                    if ($img !== '******0') {

                        $image_with_atach_id = explode('******', $img);
                        if (isset($image_with_atach_id[1]) && $image_with_atach_id[1]) {
                            $array_with_sizes = wp_get_attachment_image_src($image_with_atach_id[1]);
                            $attach_url = $array_with_sizes[0];
                        } else {
                            $attach_url = $image_with_atach_id[0];
                        }
                        $img = $imgurl[1];
                        $small_images_str .= '<img style="width: 100%" src="' . $attach_url . '" />
            ';
                        $small_images_count++;
                    }
                }
                if ($small_images_count > 1)
                    echo $small_images_str;
                else
                    echo '&nbsp;';



via Chebli Mohamed

Aucun commentaire:

Enregistrer un commentaire