WordPress.org

Ready to get started?Download WordPress

Forums

Ads by datafeedr.com
Random Ad Display (10 posts)

  1. innatedesign
    Member
    Posted 1 year ago #

    Currently using a text widget and shortcode without a caching plugin or JavaScript Disabled and I cannot get the ads to display randomly I am constantly displaying the first ad that has been added. I am able to get them to change when I set the order to impression count and ASC.

    Any suggestions you can provide are appreciated.

    http://wordpress.org/extend/plugins/ads-by-datafeedrcom/

  2. datafeedr
    Member
    Plugin Author

    Posted 1 year ago #

    Can you provide the shortcode that you are using?

  3. innatedesign
    Member
    Posted 1 year ago #

    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' );

  4. innatedesign
    Member
    Posted 1 year ago #

    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.

  5. datafeedr
    Member
    Plugin Author

    Posted 1 year ago #

    Hi,

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

    Eric

  6. innatedesign
    Member
    Posted 1 year ago #

    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?

  7. datafeedr
    Member
    Plugin Author

    Posted 1 year ago #

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

  8. innatedesign
    Member
    Posted 1 year ago #

    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.

  9. maiki
    Member
    Posted 1 year ago #

    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?

  10. datafeedr
    Member
    Plugin Author

    Posted 1 year ago #

    @innatedesign & @maiki

    What version of MySQL are both of you running?

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic