topic closed about popups in imageshow

Modern e-commerce WordPress theme to build successful online store with WooCommerce support.
GK User
Tue Oct 22, 2013 3:29 pm
sorry, can you be more specific on what should i do to have popups from images in the imageshow gk ?

Thanks
User avatar
Fresh Boarder

GK User
Tue Oct 22, 2013 4:38 pm
we are trying to figure out:
if(count($images) > 0) {
// get the images data
for($i = 0; $i < count($images); $i++) {
$images[$i] = get_page_by_title($images[$i], 'OBJECT', 'attachment');
$titles[$i] = $images[$i]->post_excerpt;
$links[$i] = get_post_meta($images[$i]->ID, '_wp_attachment_image_alt', true);
}


we want to populate the array $link with the description field instead of the alternate text field.
(because description field support html input)
User avatar
Fresh Boarder

GK User
Thu Oct 24, 2013 2:21 pm
Try to switch these values in this fragment:
Code: Select all
if($images[$i]->post_content != '' && $titles[$i] != '') {
               echo '<div class="figcaption">';
               
               if($titles[$i] != '') {
                  echo '<h3><a href="'.$links[$i].'">' . $titles[$i] . '</a></h3>';
               }
               
               if($images[$i]->post_content != '') {
                  echo '<p><a href="'.$links[$i].'">' . $images[$i]->post_content . '</a></p>';
               }
               
               echo '</div>';
            }
            
            echo '</div>';


Like I said i gave you only a tip where you should start, i can't give you complete/tested code, because this kind of modifications are beyond our technical support, if you want higher level of support you should consider our developer license with VIP support.
User avatar
Moderator


cron