0

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

  • 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

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.