Hi Leute,
ich versuche für die einzelnen Slides meiner Galerie, die als Slideshow läuft, individuelle Klassen oder Ids hinzukriegen. Damit meine ich nicht die imgs. Für die hab ich das mittels <?php echo get_the_title( $attachment_id ); ?> geregelt. Doch ich muss jetzt auch die div-tags um die imgs herum individuell ansprechen. Weiß einer zufällig wie?
Besten Dank!
Pabesco
Hier noch der Code zur besseren Veranschaulichung:
Zitat<div class="gallery-item<?php echo (!empty($video_url) ? ' video' : '' ); echo ( $video_autoplay == 'on' ) ? ' video_autoplay' : ''; ?>" itemscope itemtype="http://schema.org/ImageObject" data-caption="<?php echo htmlspecialchars( $attachment->post_excerpt ) ?>" data-description="<?php echo htmlspecialchars( $attachment->post_content ) ?>" <?php echo (!empty($video_autoplay) ) ? 'data-video_autoplay="'.$video_autoplay.'"' : ''; ?>>
<img src="<?php echo $full_img[0]; ?>" class="<?php echo get_the_title( $attachment_id ); ?> attachment-blog-big rsImg" alt="<?php echo $attachment->post_excerpt; ?>" id="<?php echo get_the_title( $attachment_id ); ?>" alt="<?php echo $attachment->post_excerpt; ?>" itemprop="contentURL" <?php echo (!empty($video_url)) ? ' data-rsVideo="'.$video_url.'"' : ''; ?> /></div>