Title: Hide next/prev button
Last modified: August 22, 2016

---

# Hide next/prev button

 *  Resolved [monkichote](https://wordpress.org/support/users/monkichote/)
 * (@monkichote)
 * [11 years, 5 months ago](https://wordpress.org/support/topic/hide-nextprev-button/)
 * Hi,
 * I would like to use pagination to show only 3 last entries in the table but would
   like to hide next/prev page button. Is it possible?
 * I simple don’t want user to go to next pages of the table. I want him to see 
   onlu last 3 rows.
 * [https://wordpress.org/plugins/tablepress/](https://wordpress.org/plugins/tablepress/)

Viewing 8 replies - 1 through 8 (of 8 total)

 *  [teracow](https://wordpress.org/support/users/teracow/)
 * (@teracow)
 * [11 years, 5 months ago](https://wordpress.org/support/topic/hide-nextprev-button/#post-5625367)
 * Hi,
 * Would this work?
 * 1. disable pagination
    2. hide all other rows except for the last 3
 * Thoughts?
 *  Plugin Author [Tobias Bäthge](https://wordpress.org/support/users/tobiasbg/)
 * (@tobiasbg)
 * [11 years, 4 months ago](https://wordpress.org/support/topic/hide-nextprev-button/#post-5625438)
 * 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](https://wordpress.org/support/users/monkichote/)
 * (@monkichote)
 * [11 years, 4 months ago](https://wordpress.org/support/topic/hide-nextprev-button/#post-5625482)
 * Sorry, I did not tell everything 🙂
 * I am using caldera form plugin for table press: [https://github.com/Desertsnowman/cf-tablepress](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](https://wordpress.org/support/users/tobiasbg/)
 * (@tobiasbg)
 * [11 years, 4 months ago](https://wordpress.org/support/topic/hide-nextprev-button/#post-5625486)
 * 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
 *  [GROSIR FASHION BATAM](https://wordpress.org/support/users/grosir-fashion-batam/)
 * (@grosir-fashion-batam)
 * [10 years, 6 months ago](https://wordpress.org/support/topic/hide-nextprev-button/#post-5625614)
 * 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](https://wordpress.org/support/users/tobiasbg/)
 * (@tobiasbg)
 * [10 years, 6 months ago](https://wordpress.org/support/topic/hide-nextprev-button/#post-5625615)
 * 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
 *  [GROSIR FASHION BATAM](https://wordpress.org/support/users/grosir-fashion-batam/)
 * (@grosir-fashion-batam)
 * [10 years, 6 months ago](https://wordpress.org/support/topic/hide-nextprev-button/#post-5625616)
 * 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
 * [http://www.grosirkw.com/ongkir/](http://www.grosirkw.com/ongkir/)
 *  Plugin Author [Tobias Bäthge](https://wordpress.org/support/users/tobiasbg/)
 * (@tobiasbg)
 * [10 years, 6 months ago](https://wordpress.org/support/topic/hide-nextprev-button/#post-5625617)
 * 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.

 * ![](https://ps.w.org/tablepress/assets/icon.svg?rev=3192944)
 * [TablePress - Tables in WordPress made easy](https://wordpress.org/plugins/tablepress/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/tablepress/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/tablepress/)
 * [Active Topics](https://wordpress.org/support/plugin/tablepress/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/tablepress/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/tablepress/reviews/)

## Tags

 * [hide](https://wordpress.org/support/topic-tag/hide/)

 * 8 replies
 * 4 participants
 * Last reply from: [Tobias Bäthge](https://wordpress.org/support/users/tobiasbg/)
 * Last activity: [10 years, 6 months ago](https://wordpress.org/support/topic/hide-nextprev-button/#post-5625617)
 * Status: resolved