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

Jak dodać tabele do wpisów i stron WordPress (bez HTML)

Po dodaniu tabel do twoich wpisów i stron WordPress możesz uporządkować dane i ułatwić czytelnikom ich zrozumienie. WordPress sprawia, że jest to bardzo proste dzięki domyślnemu blokowi tabeli.

W WPBeginner zaczęliśmy ostatnio używać tabel w naszych artykułach podsumowujących, aby wyświetlić 5 lub 10 najlepszych wtyczek. Ta prosta zmiana pomogła zwiększyć zaangażowanie naszych czytelników.

A co najlepsze? Domyślny blok zawiera wszystko, czego potrzebujemy, aby nasze tabele wyglądały świetnie.

W tym przewodniku pokażemy, jak łatwo tworzyć i zarządzać tabelami w WordPressie.

Nauczysz się podstaw wstawiania tabel, a także dowiesz się, jak ulepszyć je dzięki zaawansowanym funkcjom, takim jak sortowanie i wyszukiwanie, a wszystko to bez znajomości kodowania.

Adding tables in WordPress without writing code

Dlaczego warto dodawać tabele do wpisów i stron WordPressa?

Dodawanie tabel do twoich wpisów i stron WordPress może pomóc w uporządkowaniu informacji. Dzielą one treść na łatwo przyswajalne fragmenty, czyniąc ją bardziej przyjazną dla czytelnika.

Niezależnie od tego, czy prezentujesz wykresy porównawcze, listy czy statystyki, tabele zapewniają przejrzysty i uporządkowany sposób prezentacji twoich danych.

Ponadto tabele mogą poprawić ogólne wrażenia użytkownika. Zamiast przewijać długie akapity, twój czytelnik może szybko znaleźć informacje, których szuka.

Nadaje to twoim treściom czysty i profesjonalny wygląd, jednocześnie czyniąc je bardziej angażującymi.

Powiedziawszy to, przyjrzyjmy się, jak w prosty sposób umieszczać tabele w twoich wpisach i stronach WordPress.

Tworzenie tabel w edytorze bloków WordPress

WordPress umożliwia bardzo łatwe dodawanie tabel za pomocą domyślnego edytora bloków WordPress.

Wystarczy utworzyć nowy wpis lub stronę albo edytować już istniejący. Po wejściu do edytora treści kliknij symbol “+”, aby utworzyć nowy blok, a następnie wybierz blok Tabela.

Można ją znaleźć w sekcji “Tekst” lub wpisać “Tabela” w pasku wyszukiwania.

Add table block

Następnie zostaniesz poproszony o wybranie liczby kolumn i wierszy dla twojej tabeli. Domyślnie obie liczby wynoszą 2.

Nie martw się, jeśli nie masz 100% pewności co do dokładnej liczby, ponieważ zawsze możesz później dodać/usunąć kolumny i wiersze tabeli.

Table columns and rows

Wystarczy wpisz liczbę wierszy i kolumn, a następnie kliknij przycisk “Utwórz tabelę”.

Następnie blok wygeneruje twoją tabelę i wyświetli ją na ekranie.

Table preview

Możesz wpisać komórki tabeli, a ich rozmiar zostanie automatycznie zmieniony w zależności od ilości treści w każdej z nich.

Możesz ustawić tę opcję po prawej stronie, jeśli wolisz, aby twoje komórki miały poprawioną szerokość. W tym miejscu można również dodać nagłówek lub stopkę tabeli.

Table options panel

Z panelu ustawień można również przejść do karty Styl.

Twój motyw WordPress może oferować wiele stylów dla bloku tabeli lub możesz wybrać kolory tła i tekstu.

Table style and colors

Jeśli chcesz utworzyć nowy wiersz lub kolumnę, po prostu kliknij komórkę w miejscu tabeli, w którym chcesz ją dodać. Następnie kliknij przycisk “Edytuj tabelę”.

Spowoduje to wyświetlenie wielu opcji dodawania lub usuwania wierszy i kolumn z twojej tabeli.

Add or remove table rows and columns

Domyślnie tekst w kolumnach twojej tabeli jest wyrównany do lewej.

Można to zmienić, klikając wewnątrz kolumny, a następnie klikając przycisk “Zmień wyrównanie kolumn”:

Align table columns

Możesz także zmienić wyrównanie całej twojej tabeli w obrębie wpisu lub strony.

Wystarczy kliknąć przycisk “Zmień wyrównanie” i wybrać opcję z listy.

Table alignment

Pamiętaj, że te opcje mogą sprawić, że Twoja tabela będzie wyświetlana poza normalnymi granicami obszaru wpisu.

Niektóre z nich mogą wyglądać dziwnie na twojej witrynie WordPress, dlatego prosimy o podgląd wpisu lub strony, aby sprawdzić, jak będzie wyglądać tabela.

Oto nasza tabela ustawiona na “Szeroką szerokość”, tak jak pojawia się na naszej witrynie demonstracyjnej:

Table live preview

Jak widać, rozciąga się on poza lewy i prawy margines wpisu.

Narzędzia tabel wbudowane w edytor Gutenberg zapewniają dużą elastyczność w wyświetlaniu twoich tabel. Możesz użyć bloku Tabela, aby wyświetlić dane czytelnikom w łatwym do zrozumienia formacie.

Blok ten nie posiada jednak zaawansowanych funkcji, takich jak filtrowanie wyszukiwania, własne sortowanie i inne.

Nie pozwala również na efektywne korzystanie z tej samej tabeli w wielu obszarach twojej witryny internetowej WordPress, takich jak panele boczne lub inne strony.

Aby utworzyć zaawansowane tabele, należy użyć wtyczki tabel WordPress.

Tworzenie tabel za pomocą wtyczki TablePress

TablePress to jedna z najlepszych wtyczek tabel WordPress na rynku. Jest to darmowa wtyczka, która umożliwia łatwe tworzenie tabel i zarządzanie nimi. Ponadto możesz edytować swoją tabelę osobno, a nawet dodawać dużą liczbę wierszy.

Jeśli korzystasz ze starszego, klasycznego edytora WordPress, który nie posiada funkcji tabel, TablePress będzie najlepszym sposobem na dodanie tabel do twoich wpisów i stron.

Najpierw należy zainstalować i włączyć wtyczkę TablePress. Aby uzyskać więcej informacji, zobacz nasz przewodnik krok po kroku, jak zainstalować wtyczkę WordPress.

Następnie zobaczysz pozycję menu TablePress w twoim kokpicie WordPress. Przejdź do TablePress ” Utwórz nową, aby utworzyć nową tabelę.

Tablepress add new

Musisz wpisać rodzaj nazwy twojej tabeli i zdecydować, ile chcesz wierszy i kolumn. Wiersze i kolumny tabeli zawsze można później dodawać/usuwać.

Po dodaniu nazwy tabeli, wierszy i kolumn, kliknij przycisk “Dodaj tabelę”, aby utworzyć twoją tabelę.

Następnie zobaczysz ekran z informacjami o twojej tabeli i obszar, w którym możesz dodać treść.

TablePress Edit Table

Po prostu wpisz rodzaj danych do komórek twojej tabeli.

Aby dodawać lub usuwać wiersze i kolumny lub wykonywać operacje sortowania, wystarczy kliknąć prawym przyciskiem myszy wewnątrz tabeli. Spowoduje to wyświetlenie menu opcji, w którym można wprowadzić więcej zmian.

Right click table options

Zaawansowane opcje, takie jak “Manipulacja tabelą”, znajdują się poniżej obszaru “Treść tabeli”.

Z tego miejsca można dodawać, usuwać i duplikować wiersze.

Table manipulation options

W “Opcjach tabeli” można dodać wiersz nagłówka i/lub stopki, który nie będzie sortowany razem z danymi.

Możesz także zdecydować, gdzie wyświetlić nazwę i opis tabeli:

Advanced table options

Na koniec można ustawić różne opcje w sekcji “Funkcje tabeli dla odwiedzających witrynę”.

Ustawienia te umożliwiają tworzenie responsywnych tabel, które mogą być filtrowane, przeszukiwane i sortowane przez twoich czytelników.

Table features site visitors

Gdy będziesz zadowolony z twojej tabeli, po prostu kliknij “Zapisz zmiany”.

Następnie skopiuj krótki kod Table. Będzie on potrzebny w następnym kroku.

Teraz edytuj wpis lub stronę, na której chcesz wyświetlić tabelę i dodaj blok Shortcode do edytora.

Add shortcode

Następnie dodaj skopiowany wcześniej krótki kod do bloku Shortcode.

Nie zapomnij zaktualizować lub zapisać swoich zmian.

Z drugiej strony, jeśli korzystasz z klasycznego edytora, po prostu dodaj krótki kod bezpośrednio do twojego wpisu:

Shortcode in classic editor

Jeśli chcesz zmienić swoją tabelę w przyszłości, możesz wrócić do TablePress w kokpicie i wprowadzić zmiany. Twoja tabela zostanie automatycznie zaktualizowana we wszystkich wpisach i stronach, w których jej użyłeś.

TablePress umożliwia również importowanie danych z arkuszy kalkulacyjnych i plików CSV. Podobnie, można wyeksportować dane tabeli TablePress do pliku CSV, który można otworzyć za pomocą dowolnego programu arkusza kalkulacyjnego, takiego jak Microsoft Excel lub Google Sheets.

Film instruktażowy

Jeśli nie preferujesz pisemnych instrukcji, obejrzyj nasz film instruktażowy:

Subscribe to WPBeginner

Mamy nadzieję, że ten artykuł pomógł ci nauczyć się dodawać tabele do wpisów i stron WordPress bez użycia HTML. Być może spodoba ci się również nasz przewodnik na temat tworzenia spisu treści w WordPress i nasz poradnik na temat ukrywania bloków przed określonymi użytkownikami w edytorze WordPress.

If you liked this article, then please subscribe to our YouTube Channel for WordPress video tutorials. You can also find us on Twitter and Facebook.

Disclosure: Our content is reader-supported. This means if you click on some of our links, then we may earn a commission. See how WPBeginner is funded, why it matters, and how you can support us. Here's our editorial process.

The Ultimate WordPress Toolkit

Get FREE access to our toolkit - a collection of WordPress related products and resources that every professional should have!

Reader Interactions

130 komentarzyLeave a Reply

    • 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

  1. 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?

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

      Admin

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

    • 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

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

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

      Admin

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

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

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

      Admin

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

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

  8. 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?

    • 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

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

  10. 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?

  11. 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)

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

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

  14. 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??

  15. 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!!!!!!!!!!!! :(

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

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

  18. 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 ?

  19. 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?

  20. 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?

  21. 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?

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

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

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

  25. 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?

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

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

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

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

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

    • 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!!

    • 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

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

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

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

    • 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

Leave A Reply

Thanks for choosing to leave a comment. Please keep in mind that all comments are moderated according to our comment policy, and your email address will NOT be published. Please Do NOT use keywords in the name field. Let's have a personal and meaningful conversation.