-3
Ich weiß nicht, PHP, aber ich muss darin arbeiten. Ich brauche $attr['ids']
Array mit $gallery_setting
hinzufügen.Hinzufügen Array-Attribute zu implode()
function the_featured_image_gallery($atts = array()) {
$gallery_setting = get_theme_mod('featured_image_gallery');
if (is_array($gallery_setting) && ! empty($gallery_setting)) {
$atts['ids'] = implode(',', $gallery_setting);
echo gallery_shortcode($atts);
}
}
Im Idealfall würde Ich mag:
echo gallery_shortcode($atts, array(
'order' => 'ASC',
'size' => 'full',
'link' => 'none'
));
aber ich weiß, dass es nicht funktioniert.
Vielen Dank, sehr viel) – BrooonS