Thank you for your response, @ihorvorotnov.
Since I last posted, I’ve decided to not load plugins via Composer, since from what I understand, plugins are not updatable through the admin if they’re installed via Composer.
@philippbaschke the installer works great when I install as "type": "wordpress-plugin"
, but the admin menu doesn’t show up when I install as "type": "library"
. It seems like it’s not autoloading and/or enabling.
I see the output when I do a print_r, but I’m not having much luck when I echo my carousel_url. Thoughts?
<?php $carousel_images = get_field( 'carousel' ); ?>
<?php if ( $carousel_images ) : ?>
<?php foreach ( $carousel_images as $carousel_image ): ?>
<div class="carousel-item" style="background-image: url('<?php echo $carousel_image['sizes']['large']; ?>');">
<?php
$images = get_field('carousel');
for ($i=0; $i<count($images); $i++) {
$images[$i]['carousel_url'] = get_field('carousel_url', $images[$i]['id']);
}
echo '<pre>'; print_r($images); echo '</pre>';
echo $image['carousel_url'];
?>
</div>
<?php endforeach; ?>
<?php endif; ?>
@neurodesigns your solution is great! I noticed that it adds and/or leaves a border above the removed label. If I use simple CSS, the line does not appear. Is the filter and/or action adding the border? I’m not seeing what’s adding it.