Trusted WordPress tutorials, when you need them most.
Beginner’s Guide to WordPress
Coppa WPB
25 Million+
Websites using our plugins
16+
Years of WordPress experience
3000+
WordPress tutorials
by experts

Come aggiungere tabelle nei post e nelle pagine di WordPress (senza bisogno di HTML)

Nota editoriale: guadagniamo una commissione dai link dei partner su WPBeginner. Le commissioni non influenzano le opinioni o le valutazioni dei nostri redattori. Per saperne di più su Processo editoriale.

Volete aggiungere tabelle ai post e alle pagine di WordPress?

Le tabelle sono un ottimo modo per visualizzare i dati in un formato comprensibile. WordPress offre modi semplici per creare contenuti all’interno di tabelle con alcune opzioni di formattazione e design.

In questo articolo vi mostreremo come creare tabelle nei post e nelle pagine di WordPress senza utilizzare alcun plugin o codice HTML.

Verrà inoltre illustrato come creare tabelle avanzate in WordPress con funzioni di ordinamento e ricerca.

Adding tables in WordPress without writing code

Video tutorial

Subscribe to WPBeginner

Se preferite le istruzioni scritte, continuate a leggere.

Creare tabelle nell’editor di blocchi di WordPress

WordPress rende super facile l’aggiunta di tabelle utilizzando l’editor di blocchi predefinito di WordPress.

È sufficiente creare un nuovo post o pagina o modificarne uno esistente. Una volta all’interno dell’editor di contenuti, fare clic sul simbolo ‘+’ per aggiungere un nuovo blocco, quindi selezionare il blocco Tabella.

Si trova nella sezione “Testo” o si può digitare “Tabella” nella barra di ricerca.

Add table block

Successivamente, verrà richiesto di scegliere il numero di colonne e di righe desiderate per la tabella. Entrambe le cifre sono impostate su 2.

Non preoccupatevi se non siete sicuri al 100% del numero esatto, perché potete sempre aggiungere/rimuovere colonne e righe della tabella in un secondo momento.

Table columns and rows

È sufficiente inserire il numero di righe e colonne e fare clic sul pulsante “Crea tabella”.

Il blocco genera la tabella e la visualizza sullo schermo.

Table preview

È possibile digitare le celle della tabella, che si ridimensionano automaticamente in base alla quantità di contenuto presente in ciascuna di esse.

È possibile impostare questa opzione sul lato destro se si preferisce che le celle siano a larghezza fissa. Qui si può anche aggiungere una sezione di intestazione o piè di pagina della tabella.

Table options panel

Dal pannello delle impostazioni, è possibile passare alla scheda Stile.

Il vostro tema WordPress potrebbe offrire una serie di stili per il blocco tabella, oppure potete scegliere i colori dello sfondo e del testo.

Table style and colors

Se si desidera aggiungere una nuova riga o colonna, è sufficiente fare clic su una cella nel punto della tabella in cui si desidera aggiungerla. Quindi, fare clic sul pulsante “Modifica tabella”.

Verrà visualizzata una serie di opzioni per aggiungere o rimuovere righe e colonne alla tabella.

Add or remove table rows and columns

Per impostazione predefinita, il testo nelle colonne della tabella è allineato a sinistra.

È possibile modificarlo facendo clic all’interno di una colonna e poi facendo clic sul pulsante ‘Cambia allineamento colonne’:

Align table columns

È inoltre possibile modificare l’allineamento dell’intera tabella all’interno del post o della pagina.

È sufficiente fare clic sul pulsante “Cambia allineamento” e selezionare un’opzione dall’elenco.

Table alignment

Si noti che queste opzioni possono far sì che la tabella venga visualizzata oltre i normali confini dell’area del post.

Alcune potrebbero apparire strane sul vostro sito WordPress, quindi vi invitiamo a visualizzare un’anteprima del vostro post o della vostra pagina per controllare come apparirà la tabella.

Ecco la nostra tabella impostata su ‘Wide Width’ come appare sul nostro sito demo:

Table live preview

Come si può vedere, si estende oltre i margini destro e sinistro dell’area del post.

Gli strumenti per le tabelle integrati nell’editor di Gutenberg offrono una grande flessibilità nella visualizzazione delle tabelle. È possibile utilizzare il blocco Tabella per mostrare i dati ai lettori in un formato di facile comprensione.

Tuttavia, il blocco non dispone di funzioni avanzate come il filtro di ricerca, l’ordinamento personalizzato e altro ancora.

Inoltre, non consente di utilizzare in modo efficiente la stessa tabella in più aree del sito WordPress, come i widget della barra laterale o altre pagine.

Per creare tabelle avanzate, è necessario utilizzare un plugin per tabelle di WordPress.

Creare tabelle con il plugin TablePress

TablePress è uno dei migliori plugin per tabelle di WordPress presenti sul mercato. È un plugin gratuito e consente di creare e gestire facilmente le tabelle. Inoltre, è possibile modificare la tabella separatamente e aggiungere un gran numero di righe.

TablePress diventa necessario anche se si utilizza il vecchio editor classico di WordPress, che non dispone della funzionalità di tabella.

Per prima cosa, è necessario installare e attivare il plugin TablePress. Per maggiori dettagli, consultate la nostra guida passo passo su come installare un plugin di WordPress.

A questo punto, nella dashboard di WordPress apparirà una voce di menu TablePress. Andate su TablePress ” Aggiungi nuovo per creare una nuova tabella.

Tablepress add new

È necessario digitare un nome per la tabella e decidere il numero di righe e colonne desiderate. È sempre possibile aggiungere/rimuovere righe e colonne della tabella anche in seguito.

Dopo aver aggiunto il nome della tabella, le righe e le colonne, fare clic sul pulsante “Aggiungi tabella” per creare la tabella.

Successivamente, verrà visualizzata una schermata con le informazioni della tabella e un’area in cui è possibile aggiungere contenuti.

TablePress Edit Table

È sufficiente digitare i dati desiderati nelle celle della tabella.

Per aggiungere o rimuovere righe e colonne o eseguire operazioni di ordinamento, è sufficiente fare clic con il pulsante destro del mouse all’interno della tabella. Verrà visualizzato un menu di opzioni che consente di apportare ulteriori modifiche.

Right click table options

Le opzioni avanzate, come ‘Manipolazione tabella’, si trovano sotto l’area ‘Contenuto tabella’.

Da qui è possibile aggiungere, rimuovere e duplicare le righe.

Table manipulation options

In “Opzioni tabella” è possibile aggiungere una riga di intestazione e/o di piè di pagina, che non verrà ordinata insieme ai dati.

Si può anche decidere dove mostrare il nome e la descrizione della tabella:

Advanced table options

Infine, è possibile impostare varie opzioni nella sezione “Caratteristiche della tabella per i visitatori del sito”.

Queste impostazioni consentono di creare tabelle responsive che possono essere filtrate, ricercate e ordinate dai lettori.

Table features site visitors

Una volta soddisfatti della tabella, fare clic su “Salva modifiche”.

Successivamente, copiare lo shortcode Table. Ne avrete bisogno nella fase successiva.

A questo punto, modificare il post o la pagina in cui si desidera visualizzare la tabella e aggiungere il blocco Shortcode all’editor.

Add shortcode

Successivamente, aggiungere lo shortcode copiato in precedenza nel blocco Shortcode.

Non dimenticate di aggiornare o salvare le modifiche.

Se invece si utilizza l’editor classico, è sufficiente aggiungere lo shortcode direttamente nel post:

Shortcode in classic editor

Se si desidera modificare la tabella in futuro, è possibile tornare a TablePress nella propria dashboard e apportare le modifiche. La tabella verrà aggiornata automaticamente in tutti i post e le pagine in cui è stata utilizzata.

TablePress consente anche di importare dati da fogli di calcolo e file CSV. Allo stesso modo, è possibile esportare i dati delle tabelle di TablePress in un file CSV, che può essere aperto con qualsiasi programma di foglio di calcolo come Microsoft Excel o Google Sheets.

Speriamo che questo articolo vi abbia aiutato a capire come aggiungere tabelle ai post e alle pagine di WordPress senza usare l’HTML. Potreste anche apprezzare la nostra guida su come creare un indice in WordPress e le nostre scelte degli esperti sui migliori plugin per tabelle di WordPress.

Se questo articolo vi è piaciuto, iscrivetevi al nostro canale YouTube per le esercitazioni video su WordPress. Potete trovarci anche su Twitter e Facebook.

Divulgazione: I nostri contenuti sono sostenuti dai lettori. Ciò significa che se cliccate su alcuni dei nostri link, potremmo guadagnare una commissione. Vedi come WPBeginner è finanziato , perché è importante e come puoi sostenerci. Ecco il nostro processo editoriale .

Avatar

Editorial Staff at WPBeginner is a team of WordPress experts led by Syed Balkhi with over 16 years of experience in WordPress, Web Hosting, eCommerce, SEO, and Marketing. Started in 2009, WPBeginner is now the largest free WordPress resource site in the industry and is often referred to as the Wikipedia for WordPress.

Il kit di strumenti WordPress definitivo

Ottenete l'accesso gratuito al nostro kit di strumenti - una raccolta di prodotti e risorse relative a WordPress che ogni professionista dovrebbe avere!

Reader Interactions

131 commentiLascia una risposta

  1. Syed Balkhi says

    Hey WPBeginner readers,
    Did you know you can win exciting prizes by commenting on WPBeginner?
    Every month, our top blog commenters will win HUGE rewards, including premium WordPress plugin licenses and cash prizes.
    You can get more details about the contest from here.
    Start sharing your thoughts below to stand a chance to win!

    • WPBeginner Support says

      The + is still in the current version of WordPress, if you are using a builder or similar tool instead of the block editor, that is the most common reason why you would not see it.

      Admin

  2. Ralph says

    I use wordpress default tables and while they work great on desktop browser, on the phone everything is messed up. It only allow like 10 characters max and turn nice table into rubbish.
    Is there a way to do something with it? Like not squish but scale? Table would be smaller but readable or the same size but we can swipe it?

    • WPBeginner Support says

      It heavily depends on how your table is organized, you may want to look into TablePress for more control over the tables.

      Admin

  3. Shafi says

    Is there a way to show html without it being rendered in the front-end ? like i wanna show in the table cell, and i want the output as however, the table is treating it as if there’s an image. How do i solve that

    • WPBeginner Support says

      It would depend on the method used but in your toolbar when you have a cell selected you should have the option of setting it as inline code for what you’re wanting to do :)

      Admin

  4. Warren Contreras says

    The table is exactly what I need, but only if you can input number and display a column sum in the botom row,

    • WPBeginner Support says

      To separate the content in your tables into different pages, you want to use TablePress and its pagination options.

      Admin

  5. Anita says

    The background colors don’t work because you need to backspace the quotations and type in your own quotations. I found it by accident. If someone else has already figured that out my apologies but I wasn’t going to go through over 100 comments to check.

    • WPBeginner Support says

      Thank you for sharing that should someone run into the background color not working for them :)

      Admin

  6. Andre Victor says

    Hi. I have an existing table with data of 6 columns and 750 rows. It would be difficult to re-type into blank table in WordPress page. Please advise how I can either import the entire table (can be Excel or Word) or copy and paste the cells’ contents into blank table.

    • WPBeginner Support says

      You would want to take a look at TablePress and the import options available to bring in your table.

      Admin

  7. Margaret says

    Hi! I am wondering if it is possible to simply copy->paste a table from an existing document into WordPress? I have tried this and it doesn’t appear to work, but I am wondering if there is a trick to it that I am missing. Thanks!

    • WPBeginner Support says

      It would depend on the document but we would normally recommend recreating the table in WordPress

      Admin

  8. Jim Gharib says

    Classic editor does have table functionality and a plugin is not needed when using that editor. Check it out.

    • WPBeginner Support says

      You would need to use a plugin to enable the classic editor and normally that would require using HTML :)

      Admin

  9. Matthews Otalike says

    Oh my word, thanks for the guidance on creating tables on WordPress and other resources you have been availing to us. Kudos to you.

  10. Annapurna agrawal says

    Hi
    I have installed the tablepress plugin.

    i have issue for user capability. In the user role plugin, i haven’t granted permission to “edit_other_user_tables”. But my contributor user role can still edit other’s table and delete it as well.

    How should i avoid access to other’s table?

    • WPBeginner Support says

      You would want to reach out to TablePress to see if there is a built-in or recommended method for preventing editing of other tables.

      Admin

  11. Nabil Nawaz says

    Great article.. how can we make parent child in this ? like 1st column’s 1st cell is parent cell and next to it we have information for it’s child info.. like three rows are need to be explained for that 1st cell next to it

  12. sumit kumar gupta says

    Sir when we click on the TablePress option in Visual editor then only list of table is showing in front of me. No Table creation option is available in Visual Editor. What should I do for create a new table in Post editor?

  13. Wyce Ghiacy says

    Thanks for the video.

    What would you recommend to embed a formatted Excel sheet and collect data from registered WP users? (Like monthly usage reports, and the excel sheet also calculates the quarterly/yearly usage)

  14. Louise Wooding says

    HI

    Thank you for the video. I have created my table and chose Insert Image in one of the cells. It did let me choose the image but it then entered the URL to it rather than the image itself. Have I missed out a step??

    Thank you.
    Louise

  15. Owolabi says

    This is a nice article boss.
    Thanks for sharing.
    But I do have a question.
    Is there no plugin I can install that can bring the insert table option into the icons on my wordpress post?
    Thanks as I await a reply

  16. Ravi Kanani says

    I want to add a table of specification in which first column is same for all post and second column is different.
    How can I add this type of table in post??

  17. Susan Hawthorne says

    It would be very nice if, in the article about TAblePress it said that you have to upgrade to a business plan to use a plugin!!!!!!!!!!!! :(

  18. Barbara says

    Is there any way to bold some lines of text in the table? Its all plain text, wish there was an easy way to add bold text

  19. banks dada says

    Thanks a million for this plugin. All i needed was to prepare the list on excel and import it into wordpress.
    Sweet and time saving tool.

    Bless you guys for this piece

  20. Sadha says

    Hi, I would like to create links in the table that forward to another page and pass the row number through or any field from the row. How would I do this?

    Options I can think of which are not straight forward
    1) Use localStorage\sessionStorage
    2) Pass the value in the URL but then the next page needs to read this on load – maybe not a bad idea ?

  21. Molly Greger says

    Wow! such a fantastic tool!! BUT: the colors are so pale I cant see a thing?? How can I change the colors fo rows/columns?

  22. Alex Nicholson says

    Think this only works for users of WordPress.org. Is there any similar guide for those like me who use WordPress.com especially where I can use a coloured background to the cells in a table?

  23. Ray says

    Hello
    I was trying to make an interactive table similar to this that would use a query picking data from a database.
    I am using wordpress with a mysql/phpmyadmin database.

    My query works in phpmyadmin but does not show values in wordpress?

    SELECT * FROM `MyTablename` WHERE 1

    Do i need to use a list or print command or database name?

  24. Carolyn says

    I would definitely recommend this plugin. A reminder to blogger when moving from one hosting service to another: don’t forget to back up the tables. There’s no way to recover the data. And if you know how can you share the info.

  25. Dimitar says

    I recently was struggling to figure out how to add good-looking tables so this will be very helpful, thank you for publishing this.

  26. Paco Gimenez says

    Hi guys,
    Thank you very much for support.
    This tablepress is interesting.
    I was looking a system to do something like that:
    In i have a table with some information and colums. table1 for example.
    I want when i press some region in my map, i can load an url, like /map#section

    Can i do something like load same table in another order? by some colum o something? instead of click in a column, click in a region and load the same url but with the “#” of this table in the order required.

    Thank you very much for support.

  27. Arindam says

    Thanks for the info. I was wondering if the shortcode will have any SEO value. Is it likely that a table displayed with a shortcode will appear in Google Featured Snippet?

  28. mangi khumakcham says

    Good table plugin but not mobile friendly.
    The table right side get clipped in mobile view.

  29. Sany says

    Hey

    Can someone show me, how I can create dynamic table?

    I am new to WordPress. I like to maintain a database of gadgets say phones. I want an interface for me as admin to enter the specs and a picture of the item. For users, they will have the option to filter by brand and also compare 2 or more of these gadgets in a table format. They should also query an item and see all the specs in a table format. Please advice as to how this can be easily managed or maybe you have an article already for this!?

    thanks

    • Thanks for this! Now, how do I... says

      Please, other readers, don’t be to harsh with me (especially using the R word). I am very new to all of this and feel successful in creating my first table. Now, how do I change the look and feel of the text in the table? I am using it to link to materials contained further on the page and highlight important pieces.

      • a guy says

        You need to use CSS. There’s a bit of a learning curve to all this (in your case, you might want to style the table, rows, table cells, paragraphs in table cells, links, hover effects etc etc), so only start if it’s really important.

    • Tablepress - warning says

      I just lost a Table that I created using Tablepress. I don’t know how it was deleted, but I also just found out that there is no way to recover a deleted table. Since I don’t know how the table was deleted, I am worried about relying on Tablepress.

  30. David says

    Is it me or WordPress is retarded? I mean any WYSIWYG editor can do a table on the fly these days, but the biggest CMS can’t? I must be missing something here, but using a plugin or iframes is so much trouble for a simple table… I’ll code it myself.

    • Vituz Andersen says

      David,- I am with you. I dont get it. My first HTML editor back in 1998 had tables…. how come it has become easy to make a CMS based website, but you cant make a table…. Hellooooooo!!

    • Mayur says

      Hi David,

      I initially wanted to code it in myself, but wordpress kept formatting my table all over the place. Is there a specific was to use HTML in a page?

      Many Thanks

  31. Sirje Koop Palmqvist says

    I copied a table from Word into WordPress and the code is neat and clean. It works well. Now I want to try the same table with the FooTable plugin to make it responsive, althought it already is responsive in a way. Thought that a webdesigner keeps the material on the local computer anyway and thus can make changes in Word and replace the table in WP. This might be cheating but it works. Sirje

  32. Radu says

    TablePress is an amazing plugin.

    Thank you for this post.

    Actually today I downloaded it and already donated some money to their team.

    Have a fantastic day everyone.

  33. Neal says

    The problems with plugins like this is that if you ever abandon the plugin the content linked to that plugin is busted across your entire site.

    While very slick plugin I try to minimize my database dependency on them as much as possible.

    • WPBeginner Support says

      Neal, you are right about that. However, TablePress uses custom post types for tables. This means your tables are stored in the database even if you deactivate the plugin. You can still export the data.

      Admin

Lascia una risposta

Grazie per aver scelto di lasciare un commento. Tenga presente che tutti i commenti sono moderati in base alle nostre politica dei commenti e il suo indirizzo e-mail NON sarà pubblicato. Si prega di NON utilizzare parole chiave nel campo del nome. Avremo una conversazione personale e significativa.