Support » Plugin: Ads by » Random Ad Display

Viewing 9 replies - 1 through 9 (of 9 total)
  • Plugin Author datafeedr


    Can you provide the shortcode that you are using?

    I have now tried both the shortcode and the php code. Here is what I am currently using.

    echo dfads( ‘groups=257&limit=1&orderby=random&container_id=spotlight&return_javascript=0’ );

    I have now also found that if I ad “&order=DESC” to the code even though the order by is random I get the last ad posted for every reload instead of the first ad that was posted.

    Plugin Author datafeedr



    Do you have more than 1 add associated with the group ID 257?


    That’s a fair question, I have three test ads associated with group ID 257. I found that there may be a cache program installed. Plugin name object-cache.php – Description External Object Cache, Version 2.02 – WPEngine mods. Any chance this is creating some of the problem? If so any ideas about the work around?

    Plugin Author datafeedr


    Yes, that could definitely be causing the problem. Try setting return_javascript=1 and clearing all of your caches.

    That I have tried, Here is the current setting:
    echo dfads( ‘groups=257&limit=1&orderby=random&container_id=spotlight&return_javascript=1’ );

    I have cleared the caches.

    I’m also having this issue.

    [dfads params='groups=1048&limit=1&orderby=random&return_javascript=1']

    If I show two items, both my ads show up. If I order it differently so the other ad is first, it will only show that single ad.

    Any ideas?

    Plugin Author datafeedr


    @innatedesign & @maiki

    What version of MySQL are both of you running?

Viewing 9 replies - 1 through 9 (of 9 total)
  • The topic ‘Random Ad Display’ is closed to new replies.