Viewing 8 replies - 1 through 8 (of 8 total)
  • Hi,

    Would this work?

    1. disable pagination
    2. hide all other rows except for the last 3

    Thoughts?

    Plugin Author Tobias B?thge

    (@tobiasbg)

    Hi,

    thanks for your question, and sorry for the trouble.

    I also don’t really understand why you first want to load the rows and then hide them, without making it possible to see them.
    It should indeed be much easier to just hide the undesired rows on the “Edit” screen of the table. For that, click the checkboxes on their left and then use the “Selected rows: Hide” button.

    Regards,
    Tobias

    Thread Starter monkichote

    (@monkichote)

    Sorry, I did not tell everything ??

    I am using caldera form plugin for table press: https://github.com/Desertsnowman/cf-tablepress

    So I am not loading the rows – they show automaticaly as people fulfill the form.
    So rows are changig and I would like to show onli last 3 entries ??

    Plugin Author Tobias B?thge

    (@tobiasbg)

    Hi,

    ah, ok ??

    The easiest way might then be to modify the SQL queries that the extra plugin performs.
    Changing the line

    $entries = $wpdb->get_results( $wpdb->prepare( "SELECT * FROM <code>&quot; . $wpdb->prefix . &quot;cf_form_entries</code> WHERE <code>form_id</code> = %s AND <code>status</code> = 'active' ORDER BY <code>datestamp</code> DESC;", $form['ID'] ) );

    to

    $entries = $wpdb->get_results( $wpdb->prepare( "SELECT * FROM <code>&quot; . $wpdb->prefix . &quot;cf_form_entries</code> WHERE <code>form_id</code> = %s AND <code>status</code> = 'active' ORDER BY <code>datestamp</code> DESC LIMIT 3;", $form['ID'] ) );

    might be enough.

    Regards,
    Tobias

    hi ,

    is it possible to remove the button “Previous – Next” below tablepress

    i set my pagination to 1 row per page, and i dont want to show next/previous just let them using search bar function

    Plugin Author Tobias B?thge

    (@tobiasbg)

    Hi,

    thanks for your question, and sorry for the trouble.

    Yes, that’s possible. In this case, using CSS should be the easiest. For example, add this to the “Custom CSS” textarea on the “Plugin Options” screen of TablePress:

    .tablepress-123_paginate {
      display: none;
    }

    (with 123 being the table ID).

    Regards,
    Tobias

    Hi Tobias ,

    Thanks your fast response,
    1) Rename my table ID become 123
    2) Done input this to the “Custom CSS” textarea on the “Plugin Options”

    .tablepress-123_paginate {
    display: none;
    }

    but its still show NEXT – PREVIOUS button below table , please check

    https://www.grosirkw.com/ongkir/

    Plugin Author Tobias B?thge

    (@tobiasbg)

    Hi,

    ah, sorry, I made a mistake. Please try again with

    #tablepress-123_paginate {
      display: none;
    }

    Note that you don’t have to change your table ID to 123. It would be much easier to instead change the ID in the CSS code ??

    (Unfortunately, I could not check if this typo in my suggested code is the solution, as I could not see the table in the page in your link ?? )

    Regards,
    Tobias

Viewing 8 replies - 1 through 8 (of 8 total)
  • The topic ‘Hide next/prev button’ is closed to new replies.