Take the 2-minute tour ×
WordPress Development Stack Exchange is a question and answer site for WordPress developers and administrators. It's 100% free, no registration required.

Is there is a way to make the custom header to show more than one image in a random show without duplicate images.

I tried something like this:

<?php $header_image = get_header_image();
    if ( ! empty( $header_image ) ) : ?>
        <a href="<?php echo esc_url( home_url( '/' ) ); ?>">
            <ul>
                <li><img src="<?php echo esc_url( $header_image ); ?>" class="header-image" width="<?php echo get_custom_header()->width; ?>" height="<?php echo get_custom_header()->height; ?>" alt="" />
                </li>
                <li><img src="<?php echo esc_url( $header_image ); ?>" class="header-image" width="<?php echo get_custom_header()->width; ?>" height="<?php echo get_custom_header()->height; ?>" alt="" />

                </li>
            </ul>
            </a>
    <?php endif; ?>

But dose not work - Any advice please?

Want something like this in the latest wordpress Version 3.5.1 enter image description here

and want to make every image change with random without duplicate

share|improve this question
    
Are you talking about a slideshow? There are many plugins available for this. –  vancoder Apr 16 '13 at 16:17
    
No I am talking about the normal custom header in the latest wordpress Version 3.5.1 –  Ehab Fawzy Apr 16 '13 at 19:25
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Browse other questions tagged or ask your own question.