oQey Headers
Duplicated random images (1 post)

  1. Robert Novak
    Posted 4 years ago #

    Hi there,

    I love this plugin but I have some problem with duplicated images.

    I place oQey as a background images in my slider Featured post like this:

    <?php $featured_posts = get_featured_posts(array('method' => 'the_loop')); while (have_posts()) : the_post(); if (!in_array($post->ID, $ids)); ?>
    <li id="<?php the_ID(); ?>" style="background:url(<?php randomHeader(); ?>) no-repeat;">
    <?php the_excerpt(); ?>
    <?php endwhile; ?>
    <?php wp_reset_query(); ?>

    So, I would like to have for every LI to have deferent random image in background as long there is a less LI sliders then oQey images but the problem is that on every refresh page there is a several duplicated entries.

    Is there any way to solve that problem?

    Try to refresh a couple time and slide the big images - http://www.ng-prom.hr/

    Thanks a lot


Topic Closed

This topic has been closed to new replies.

About this Plugin

  • oQey Headers
  • Frequently Asked Questions
  • Support Threads
  • Reviews

About this Topic