Skip to content

Instantly share code, notes, and snippets.

@hitsujixgit
Created August 21, 2014 03:59
Show Gist options
  • Save hitsujixgit/b34b53af6db14e965379 to your computer and use it in GitHub Desktop.
Save hitsujixgit/b34b53af6db14e965379 to your computer and use it in GitHub Desktop.
How to add bxSlider to Wordpress's templates.
<?php
$header_images = get_uploaded_header_images();
if ($header_images) {
echo '<ul class="bxslider">';
foreach ($header_images as $key => $value) {
echo '<li><img src="'.$value['url'].'" /></li>';
}
echo '</ul>';
} else {
echo '<img id="frontpage-image" src="'.get_template_directory_uri().'/img/sky_2x.jpg" width="900" height="200" />';
}
?>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment