Title: Hide Certain Columns
Last modified: June 29, 2021

---

# Hide Certain Columns

 *  Resolved [furmori](https://wordpress.org/support/users/furmori/)
 * (@furmori)
 * [4 years, 11 months ago](https://wordpress.org/support/topic/hide-certain-columns/)
 * Hi,
    I created an ACF table with 4 columns. I applied the same code mentioned
   in the FAQ to render the table fields data as an HTML table on the frontend and
   it works. But is it possible if I only want to show fields in the first 2 columns(
   Column A & B) so the other columns are not displayed on the frontend? Rows to
   show as what is created. Thank you in advanced.

Viewing 1 replies (of 1 total)

 *  Plugin Author [Johann Heyne](https://wordpress.org/support/users/jonua/)
 * (@jonua)
 * [4 years, 11 months ago](https://wordpress.org/support/topic/hide-certain-columns/#post-14606737)
 * Hi,
 * hiding specific columns of a table by index/position can be done with the CSS:
   nth-child() pseudo class.
 *     ```
       table td,
       table th {
         /* hide all cells first */
       }
       table td:nth-child(1),
       table th:nth-child(1),
       table td:nth-child(2),
       table th:nth-child(2) {
         /* show cells of first and second column */
       }
       ```
   
 * Cheers,
    Johann

Viewing 1 replies (of 1 total)

The topic ‘Hide Certain Columns’ is closed to new replies.

 * ![](https://ps.w.org/advanced-custom-fields-table-field/assets/icon-256x256.png?
   rev=1962986)
 * [Table Field Add-on for ACF and SCF](https://wordpress.org/plugins/advanced-custom-fields-table-field/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/advanced-custom-fields-table-field/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/advanced-custom-fields-table-field/)
 * [Active Topics](https://wordpress.org/support/plugin/advanced-custom-fields-table-field/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/advanced-custom-fields-table-field/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/advanced-custom-fields-table-field/reviews/)

 * 1 reply
 * 2 participants
 * Last reply from: [Johann Heyne](https://wordpress.org/support/users/jonua/)
 * Last activity: [4 years, 11 months ago](https://wordpress.org/support/topic/hide-certain-columns/#post-14606737)
 * Status: resolved