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

Como adicionar tabelas em posts e páginas do WordPress (sem necessidade de HTML)

Nota editorial: Ganhamos uma comissão de links de parceiros no WPBeginner. As comissões não afetam as opiniões ou avaliações de nossos editores. Saiba mais sobre Processo editorial.

Você deseja adicionar tabelas a posts e páginas do WordPress?

As tabelas são uma ótima maneira de exibir dados em um formato compreensível. O WordPress oferece maneiras fáceis de criar conteúdo dentro de tabelas com algumas opções de formatação e design.

Neste artigo, mostraremos como criar tabelas em posts e páginas do WordPress sem usar um plugin ou qualquer código HTML.

Também abordaremos como criar tabelas avançadas no WordPress com recursos de classificação e pesquisa.

Adding tables in WordPress without writing code

Tutorial em vídeo

Subscribe to WPBeginner

Se você preferir instruções escritas, continue lendo.

Criação de tabelas no editor de blocos do WordPress

O WordPress facilita muito a adição de tabelas usando o editor de blocos padrão do WordPress.

Basta criar um novo post ou página ou editar um já existente. Dentro do editor de conteúdo, clique no símbolo “+” para adicionar um novo bloco e selecione o bloco Table (Tabela).

Você pode encontrá-la na seção “Texto” ou digitar “Tabela” na barra de pesquisa.

Add table block

Em seguida, será solicitado que você escolha quantas colunas e linhas deseja para a tabela. Ambos os números têm como padrão 2.

Não se preocupe se não tiver 100% de certeza sobre o número exato, pois você sempre poderá adicionar/remover colunas e linhas da tabela posteriormente.

Table columns and rows

Basta digitar o número de linhas e colunas e clicar no botão “Create Table” (Criar tabela).

Em seguida, o bloco gerará sua tabela e a exibirá na tela.

Table preview

Você pode digitar nas células da tabela, e elas serão redimensionadas automaticamente, dependendo da quantidade de conteúdo em cada uma delas.

Você pode definir essa opção no lado direito se preferir que as células tenham largura fixa. Aqui, também é possível adicionar um cabeçalho de tabela ou uma seção de rodapé.

Table options panel

No painel de configurações, você também pode alternar para a guia Style (Estilo).

Seu tema do WordPress pode oferecer vários estilos para o bloco da tabela, ou você pode escolher as cores do fundo e do texto.

Table style and colors

Se quiser adicionar uma nova linha ou coluna, basta clicar em uma célula no ponto da tabela em que deseja adicioná-la. Em seguida, clique no botão “Edit Table” (Editar tabela).

Isso mostrará várias opções para adicionar ou remover linhas e colunas de sua tabela.

Add or remove table rows and columns

Por padrão, o texto nas colunas de sua tabela é alinhado à esquerda.

Você pode alterar isso clicando em uma coluna e, em seguida, no botão “Change Column Alignment” (Alterar alinhamento da coluna):

Align table columns

Você também pode alterar o alinhamento de toda a tabela dentro do post ou da página.

Basta clicar no botão “Alterar alinhamento” e selecionar uma opção na lista.

Table alignment

Observe que essas opções podem fazer com que sua tabela seja exibida além dos limites normais da área da postagem.

Algumas podem parecer estranhas em seu site WordPress, portanto, visualize seu post ou página para verificar como a tabela será exibida.

Aqui está nossa tabela definida como “Wide Width” (largura ampla), como aparece em nosso site de demonstração:

Table live preview

Como você pode ver, ele se estende além das margens esquerda e direita da área de postagem.

As ferramentas de tabela incorporadas no editor do Gutenberg lhe dão muita flexibilidade na exibição de suas tabelas. Você pode usar o bloco Table para mostrar dados aos leitores em um formato fácil de entender.

No entanto, o bloco não tem recursos avançados, como filtragem de pesquisa, classificação personalizada e outros.

Ele também não permite que você use com eficiência a mesma tabela em várias áreas do seu site WordPress, como widgets da barra lateral ou outras páginas.

Para criar tabelas avançadas, você precisará usar um plug-in de tabela do WordPress.

Criação de tabelas usando o plug-in TablePress

OTablePress é um dos melhores plug-ins de tabelas do WordPress no mercado. Ele é um plugin gratuito e permite criar e gerenciar tabelas facilmente. Além disso, você pode editar sua tabela separadamente e até mesmo adicionar um grande número de linhas.

O TablePress também se torna necessário se você estiver usando o editor clássico mais antigo do WordPress, que não tem a funcionalidade de tabela.

Primeiro, você precisa instalar e ativar o plug-in TablePress. Para obter mais detalhes, consulte nosso guia passo a passo sobre como instalar um plug-in do WordPress.

Em seguida, você verá um item de menu TablePress no painel do WordPress. Acesse TablePress ” Add New para criar uma nova tabela.

Tablepress add new

Você precisa digitar um nome para a tabela e decidir quantas linhas e colunas deseja. Você sempre pode adicionar/remover linhas e colunas da tabela posteriormente.

Depois de adicionar o nome da tabela, as linhas e as colunas, clique no botão “Add Table” (Adicionar tabela) para criar a tabela.

Em seguida, você verá uma tela com as informações da sua tabela e uma área onde poderá adicionar conteúdo.

TablePress Edit Table

Basta digitar os dados desejados nas células da tabela.

Para adicionar ou remover linhas e colunas ou realizar operações de classificação, basta clicar com o botão direito do mouse dentro da tabela. Isso mostrará um menu de opções no qual você poderá fazer mais alterações.

Right click table options

As opções avançadas, como “Manipulação de tabela”, estão abaixo da área “Conteúdo da tabela”.

A partir daí, você pode adicionar, remover e duplicar linhas.

Table manipulation options

Em “Table Options” (Opções de tabela), você pode adicionar uma linha de cabeçalho e/ou rodapé, que não será classificada com os dados.

Você também pode decidir onde mostrar o nome e a descrição da tabela:

Advanced table options

Por fim, você pode definir várias opções na seção “Recursos de tabela para visitantes do site”.

Essas configurações permitem que você crie tabelas responsivas que podem ser filtradas, pesquisadas e classificadas por seus leitores.

Table features site visitors

Quando estiver satisfeito com sua tabela, basta clicar em “Save Changes” (Salvar alterações).

Depois disso, copie o shortcode Table. Você precisará dele na próxima etapa.

Agora, edite o post ou a página em que você deseja exibir a tabela e adicione o bloco Shortcode ao editor.

Add shortcode

Depois disso, adicione o shortcode que você copiou anteriormente no bloco Shortcode.

Não se esqueça de atualizar ou salvar suas alterações.

Por outro lado, se você estiver usando o editor clássico, basta adicionar o shortcode diretamente à sua postagem:

Shortcode in classic editor

Se quiser alterar sua tabela no futuro, você poderá retornar ao TablePress em seu painel e fazer alterações. Sua tabela será atualizada automaticamente em todos os posts e páginas em que você a tiver usado.

O TablePress também permite importar dados de planilhas e arquivos CSV. Da mesma forma, você pode exportar os dados da tabela do TablePress para um arquivo CSV, que pode ser aberto com qualquer programa de planilha, como o Microsoft Excel ou o Google Sheets.

Esperamos que este artigo tenha ajudado você a aprender como adicionar tabelas a posts e páginas do WordPress sem usar HTML. Você também pode gostar de nosso guia sobre como criar um índice no WordPress e de nossas escolhas de especialistas para os melhores plug-ins de tabela do WordPress.

Se você gostou deste artigo, inscreva-se em nosso canal do YouTube para receber tutoriais em vídeo sobre o WordPress. Você também pode nos encontrar no Twitter e no Facebook.

Divulgação: Nosso conteúdo é apoiado pelo leitor. Isso significa que, se você clicar em alguns de nossos links, poderemos receber uma comissão. Veja como o WPBeginner é financiado, por que isso é importante e como você pode nos apoiar. Aqui está nosso processo editorial.

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.

O kit de ferramentas definitivo WordPress

Obtenha acesso GRATUITO ao nosso kit de ferramentas - uma coleção de produtos e recursos relacionados ao WordPress que todo profissional deve ter!

Reader Interactions

131 ComentáriosDeixe uma resposta

  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!

  2. 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.

  3. 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

  4. 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

  5. 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.

  6. 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.

      Administrador

  7. Group Of Oceninfo says

    Hello Wpbeginner Team,

    Is it possible to call script in same way ?

    For ex. I have 1000 different scripts for 500 different post.

    I want to call 2 table in each post and in that table Want to run script not text so Is it possible to call two scripts in table ?

  8. ore says

    Thanks for this! what resources can I use to create a table in which my clients can log in and post the prices of items they want to either buy and sell and which remains visible to the public

  9. Rátkai Tamás says

    I’m interested in adding a table to a form or page. So if a user goes to the page, he can add the Quantity in the cells and at the bottom of the form he can send the table to me.

    Basically it would be a really simple order page without any payment options.

  10. Pierre says

    I’v been trying to insert a table in a blog post by using the tablepress plug in. Suddenly, the word Edit inside a pair of brackets has been appearing in the lower left corner of each page of my web site. I can’t get rid of it. Do you know how I can fix this?

    Many thanks!

    Pierre

  11. Nouman Younas says

    superb… i just install it after reading this post… i am having some issues when i go for mobile preview… lets see, overall great plugin and post (Y)

  12. Anil Anvesh says

    Ok, I installed the plugin and used a short code to add table to post. Now my query is what google reads short code or table content? Is it seo friendly? Give me a linke to your post where you used this plugin?

  13. Andrew says

    I like the plugin, but I cannot figure out how to customize the width/height of the columns/rows, or how to have a particular cell be only as large as the contents inside it. Is there any way to do this? Thank you.

  14. Helen Edwards says

    How do I remove the “Show xx entries” at the top of the table and “showing 1 to 6 of 6 entries” at the bottom?

  15. Jaya says

    Hi,
    how can i use the tablepress form in my post section to particular user can able to add tables using copy, import files… Please help me to use…Thank you.

    regards
    Jaya

  16. Amanda says

    This is a great plugin. i have one question – i nee ot make the font bigger for the info that’s in my table. is there any way to do this other than entering code for each cell individually?

  17. Amy says

    So which WordPress version are you writing for? WordPress.com or WordPress.org, because I can’t find the plugin option on my dashboard. You really should specify this … now I’m back to writing code by hand after getting my hopes up.

  18. Jimi Mikusi says

    Wow.

    I’m not easily impressed but this managed to do it.
    Within minute after adding the plugin I had a visual pleasing and easily maintainable table on my site.

    Thanks!

  19. Eddu says

    Love this plugin.
    Tried to style the table with Headway. No luck so far. Did someone else tried also? Would be great if it would be possible to do so.
    Again, great plugin :-)

    Ed.

  20. William Lower says

    What a treasure this was to find! This non-programmer was having a serious non-day trying to create tables with code.

  21. Chrissy says

    Thanks for this ! Ive been searching the web trying to find a solution because I see all these awesome pricing tables on websites and Ive been using the TinyMCE plugin, which works but its not what I am really needing. Thanks again you guys rock

  22. Vickie says

    Thanks for another very useful post!
    Please does anyone know if it is possible to add code into a cell? I need to add paypal code into a table but not sure the best way to do it?

  23. Yvonne Finn says

    Thanks so much for this relatively simple to use plugin. It has saved me from much frustration as I am no techie and don’t actually want to spend hours doing what can be done with a plugin.

    I tried some of the other plugins for creating tables and was not impressed with their user-friendliness or lack thereof.

    Much appreciation!
    Yvonne

  24. David says

    This looks like Tables Reloaded, which we use on some sites. However, it looks easier to use and manage. How well does it work with caching plugins like w3 total cache?

    • Editorial Staff says

      This is the successor of WP Tables Reloaded plugin worked on by the same developer (Tobias). Tobias also commented on this post saying that the next version will be compatible with W3 Total Cache.

      Administrador

  25. Jeff Cohan says

    Absolutely agree: TablePress is THE BEST plugin for creating tables in WordPress (IMHO).

    Just a few things to add:

    1) TablePress is the successor to what USED TO BE the best plugin for creating tables in WordPress: WP-Table Reloaded (now retired). Both are the work of developer Tobias Bathge.

    2) Tables built with WP-Table Reloaded can be migrated to TablePress.

    3) Tobias’ support is extraordinary. When I first used TablePress in November of 2012, I encountered a bug in the HTML import function and reported it in the support forum at WordPress.org. Within an hour, Tobias published a fix to Github. But don’t take my word for it. Check out the support forum.

    Jeff Cohan

  26. Keith Davis says

    Thanks Guys
    This could be the table plugin for me.

    In the past I’ve created tables in Dreamweaver then cut and pasted the code.

    I’ll throw out a few tweets on this one.

  27. Jason says

    I just got this plug in last week as an alternative to using google docs iframe functions. This works great and allows a client to update the table without updating the pages or posts. I did find that you have to make sure you empty the caches if you are using the W3 plugin, or else you will get a cached version of the table. Great write up.

    • TobiasBg says

      Great to hear that you like the plugin!
      What you say about caching plugins, like W3 Total Cache, is true. Good thing though: The next version of TablePress will automatically clear the W3 Total Cache page cache, to make sure that all shown tables are up-to-date :-)

      Best wishes,
      Tobias
      Author of TablePress

  28. Rod Salm says

    Seems odd to put a table creating tab in the main WordPress menu. The menu is supposed to be for top level functions. It seems that it should be in tools maybe, or in the post menu, where you select the tables, have the table making function accessible in the edit functions. Most times people are creating tables in posts and pages and would need to edit the table as well as the data within it.

    Having said that, it’s a pretty slick table maker.

    ­Rod Salm

    • TobiasBg says

      I agree that the main menu is not always the best option, like when you only maintain a few tables once in a while. So, I made this an option :-) In the TablePress Plugin Options, you can actually choose where you want the TablePress menu entry to appear. Moving it to “Tools” or “Posts” is no problem with that :-)
      (The predecessor of TablePress put its menu under “Tools” by default. I then however got questions from users who couldn’t find it, after activating it. That is why TablePress will sit in the main menu by default.)

      Best wishes,
      Tobias
      Author of TablePress

    • Editorial Staff says

      Not odd at all. It is done for organizational purposes similar to contact forms, sliders, etc. By doing it this way, you can easily go to the menu and look at all the tables you have ever created rather than searching through the individual posts.

      Administrador

    • Editorial Staff says

      10,000 rows? Why in the world would you want that to be part of your blog post? Attach it as a separate file, so those who want to download it can do so if they like. It would freak the user out to see how long the page is if you have that many rows.

      Administrador

    • TobiasBg says

      As the editorial staff pointed out already, there are better methods for such large tables, like offering a download, or using a custom PHP/mySQL solution.
      You can certainly try using TablePress with a table of that size, but I don’t really recommend it. It should work, but it will probably be slow, especially on the “Edit” screen of the table.

      Best wishes,
      Tobias

  29. ivica says

    Absolutely THE best table WordPress plugin at the moment. I tried them all, and this one is the most robust/powerful and yet at the same time the most simple to use. Good choice! :-)

Deixe uma resposta

Obrigado por deixar um comentário. Lembre-se de que todos os comentários são moderados de acordo com nossos política de comentários, e seu endereço de e-mail NÃO será publicado. NÃO use palavras-chave no campo do nome. Vamos ter uma conversa pessoal e significativa.