Viewing 6 replies - 1 through 6 (of 6 total)
  • Plugin Author Michael Simpson

    (@msimpson)

    I don’t quite understand what you are saying. But I think there is a problem where “random” and “limit” don’t work the way one would logically expect. “random” is applied to select values out of the entire data set first and limit is applied to limit the number of selected values. It would make more sense if that was reversed, but that is the behavior currently.

    Thread Starter weeberp

    (@weeberp)

    I do not know how to use “random” (https://cfdbplugin.com/?page_id=89#random). I removed limit; in the database I have 18 entries, and only see 17.
    I left it alone [cfdb-table form=”Inscripción de Candidatos” role=”Anyone” permissionmsg=”true” random=”17″] and the same.

    Thread Starter weeberp

    (@weeberp)

    Sorry, I put now radom=”18″ but I only see 17. I need indicate same column for random.

    Plugin Author Michael Simpson

    (@msimpson)

    I don’t know why the plugin would only give you 17 rows when you set random=”18″. Do you see 18 rows when you do not use random. That is: [cfdb-table form="Inscripción de Candidatos" role="Anyone" permissionmsg="true"]

    I tried this with my own data and I get 18 rows. Do you get 18 rows if you set random=”19″?

    Thread Starter weeberp

    (@weeberp)

    Yes, If I quit random in my shortcode or I put your shortcode, I can to see all rows from database, is ok. But if I have the code random always I have a one less, random=”17″, random=”18″, random=”19″, random=”20″…
    It is curious, if I put “radom = 15”, I see 15 rows and the random is ok, but the first row is almost always the same, the second in the database. I think that never leaves the first row of the database at random.
    If I put “random = 16” I have 16 rows but not random and 17 also. And with 18 or more, I have only 17 rows without random.
    (I refreshed the browser by pressing Control or shift more f5).
    I quit random in my shortcode now, because is more important to see all the rows that random by this time.

    Plugin Author Michael Simpson

    (@msimpson)

    OK. It seems that “random” is not working properly. I’ll have to look into that and get back to you.

Viewing 6 replies - 1 through 6 (of 6 total)
  • The topic ‘ShortCode dont work Random and the first row does not appear in table.’ is closed to new replies.