php - How to get a list of uploaded custom-background images in wordpress? -
php - How to get a list of uploaded custom-background images in wordpress? -
i'm building theme , i'd utilize 'supersized' script rotate background images. i've used wp built-in customizer upload couple of background images. show in customizer under "background image"->"uploaded" tab.
what looking the code retrieve urls of images - done in customizer, utilize in script.
i looked through 'customize.php' in /wp-admin/ invokes function , code function elsewhere. has knowledge on code located?
interestingly, images uploaded through customizer not show in media library...
anyone help that?
edit: in other words - what query homecoming urls of custom-background images uploaded through customizer?
thanks.
if static page can seek addon acf plugin repeater field
<div id="mycarousel" class="carousel slide" data-ride="carousel"> <div class="carousel-inner"> <?php if(get_field('carrusel')):?> <?php while(has_sub_field('carrusel')): ?> <div class="item"> <img src="<?php $image = get_sub_field('image'); echo $image; ?>" alt="slide"> </div> <?php endwhile ?> <?php endif ?> </div> <a id="nav-izq" class="left carousel-control" href="#mycarousel" data-slide="prev"> <img src="<?php print images ?>/nav-izq.png" alt=""> </a> <a id="nav-der" class="right carousel-control" href="#mycarousel" data-slide="next"> <img src="<?php print images ?>/nav-der.png" alt=""> </a> </div>
this illustration of bootstrap carousel created acf repeater field
php wordpress background-image
Comments
Post a Comment