Okay
  Public Ticket #1040713
modifications to WPDataTables
Closed

Comments

  •  2
    Marcel started the conversation

    Hi,

    I would like to do the following:

    1. I don't want to show the "Show xx entries" dropdown on the page, how can I remove it?
    2.  I only want to show one entry (so not the current minimum of 10 entries on one page, how can I do this?
    3. I don't want to show pagination, how can I remove it?
    4. I don't want to show the Search field, how can I remove it?
    5. I don't need the sorting options in each column (ascended/descending (the little up/down arrows), how can I remove these?

    The whole purpose of this is that I build a VIN database (Vehicle Identification Number) and I would people need to use the filter entry field just to look up their VIN and then show one row with details about that VIN.

  • [deleted] replied

    Hi Marcel,

    1. Please take a look at this F.A.Q
    2. Please add this code in your theme function.php file


    function changeRowNumber( $object, $table_id) {
    $object->dataTableParams->iDisplayLength = 1; return $object; } add_filter('wpdatatables_filter_table_description', 'changeRowNumber', 10, 2);


    3.You can remove this with CSS by adding this code:


    .wpDataTablesWrapper .dataTables_paginate {
    display:none;
    }


    4. Please take a look at this F.A.Q
    5. Please uncheck "Enable sorting" option on Edit table page (Attachment)