• Resolved tapsa1958

    (@tapsa1958)


    Hi,
    Thank you for this excellent plugin.

    I need to show 10 random rows with filter. I have installed Row Filtering and Display Random Row extensions. But when I use this shortcode it does not show anything:
    [table id=123 show_rows=”random” random_rows=”10″ filter=”filter-word”/]

    How can I make it work?

Viewing 5 replies - 1 through 5 (of 5 total)
  • Plugin Author Tobias B?thge

    (@tobiasbg)

    Hi,

    thanks for your post, and sorry for the trouble.

    Unfortunately, this approach won’t work like that, as these Extensions are not compatible to each other.
    Instead, you could maybe use the TablePress Extension from https://tablepress.org/extensions/table-row-order/ to get the filter result set in a random order. Then, to only show 10 of those rows, you could use some CSS code like

    .tablepress-id-123 tr:nth-child(1n+10) {
        display: none;
    }

    Regards,
    Tobias

    Thread Starter tapsa1958

    (@tapsa1958)

    Thank you for your quick response.
    I don′t want to use CSS to hide content.

    Is it posible to show first 10 rows, use random order and remove (without using CSS) the next page link?

    Plugin Author Tobias B?thge

    (@tobiasbg)

    Hi,

    you could hide the “Next page” link (with CSS), but the data would still be in the page, so this would actually be more complicated than the CSS approach.

    Why don’t you want to use CSS?

    Regards,
    Tobias

    Thread Starter tapsa1958

    (@tapsa1958)

    Google does not like hidden content.

    Plugin Author Tobias B?thge

    (@tobiasbg)

    Hi,

    ok, I see, even though I’m not sure, how important this really is as a ranking factor to Google…

    Then, hiding the “Next” link might be best, with

    #tablepress-123_wrapper .dataTables_paginate {
      display: none;
    }

    This way, not the data is hidden, but the controls.

    Regards,
    Tobias

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘Filter Random Row’ is closed to new replies.