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

Wie man ein Inhaltsverzeichnis in WordPress-Beiträgen und -Seiten erstellt

Hinweis der Redaktion: Wir erhalten eine Provision für Partnerlinks auf WPBeginner. Die Provisionen haben keinen Einfluss auf die Meinung oder Bewertung unserer Redakteure. Erfahre mehr über Redaktioneller Prozess.

Möchten Sie Ihren WordPress-Beiträgen oder -Seiten ein Inhaltsverzeichnis hinzufügen?

Ein Inhaltsverzeichnis (TOC) kann die Navigation in einem langen Artikel erleichtern und die SEO Ihrer WordPress-Website verbessern. Für Anfänger kann es jedoch schwierig sein, ein Inhaltsverzeichnis zu erstellen.

In diesem Artikel zeigen wir Ihnen, wie Sie ein Inhaltsverzeichnis in WordPress-Beiträgen und -Seiten erstellen können.

How to Create a Table of Contents in WordPress Posts and Pages

Warum ein Inhaltsverzeichnis zu Posts und Seiten in WordPress hinzufügen?

Vielleicht kennen Sie die Inhaltsverzeichnisse von Websites wie Wikipedia. Wir verwenden sie auch auf WPBeginner für unsere langen Artikel, wie zum Beispiel unseren ultimativen Leitfaden zur Steigerung der Geschwindigkeit und Leistung von WordPress.

Sie können den Beiträgen auf Ihrer WordPress-Website ein Inhaltsverzeichnis hinzufügen, um das Springen zwischen den einzelnen Abschnitten eines langen Artikels zu erleichtern.

Sie verbessern nicht nur die Benutzerfreundlichkeit, sondern helfen auch Ihrer WordPress-SEO. Denn Google kann das Inhaltsverzeichnis nutzen, um in den Suchergebnissen automatisch Links zum „Springen zum Abschnitt“ hinzuzufügen.

Google Includes Table of Contents Entries in Search Results

Ein Inhaltsverzeichnis kann auch dazu beitragen, dass Ihr Beitrag als „Featured Snippet“ oben auf der Ergebnisseite der Suchmaschine aufgeführt wird.

Auf diese Weise erhalten Sie den maximalen SEO-Traffic.

Tables of Contents Are Also Used in Featured Snippets

Schauen wir uns also an, wie man ein einfaches Inhaltsverzeichnis in WordPress-Beiträgen und -Seiten erstellen kann. Wir zeigen Ihnen, wie Sie es automatisch mit einem Plugin und manuell mit Ankerlinks erstellen können:

Methode 1: Automatisches Hinzufügen eines Inhaltsverzeichnisses in WordPress

AIOSEO, auch bekannt als All in One SEO, ist das beste WordPress-SEO-Plugin, und es kommt mit einem eingebauten Inhaltsverzeichnis-Block für WordPress.

Wir empfehlen diese Methode, weil sie Ihnen Zeit spart, indem sie das Inhaltsverzeichnis automatisch auf der Grundlage Ihrer Zwischenüberschriften erstellt und es gleichzeitig mit editierbaren Links vollständig anpassbar macht.

Weitere Informationen finden Sie in unserem vollständigen AIOSEO-Test.

Als Erstes müssen Sie das kostenlose All in One SEO Lite-Plugin installieren. Weitere Einzelheiten finden Sie in unserer Schritt-für-Schritt-Anleitung für die Installation eines WordPress-Plugins.

Die kostenlose Version reicht aus, um ein Inhaltsverzeichnis hinzuzufügen, aber AIOSEO Pro bietet noch mehr Funktionen, die Ihnen helfen, besser in den Suchmaschinenergebnissen zu ranken.

Nach der Aktivierung müssen Sie das Plugin mithilfe des AIOSEO-Einrichtungsassistenten konfigurieren. Detaillierte Anweisungen finden Sie in unserem Leitfaden zur korrekten Einrichtung von All in One SEO für WordPress.

Hinzufügen eines Inhaltsverzeichnisses mit All in One SEO

Sie müssen den Beitrag oder die Seite, auf der Sie das Inhaltsverzeichnis hinzufügen möchten, erstellen oder bearbeiten. Danach klicken Sie im Block-Editor auf das blaue „+“-Symbol und suchen den Block „AIOSEO – Inhaltsverzeichnis“.

Add an AIOSEO Table of Contents Block to the Post or Page

Ziehen Sie den Block einfach auf den Beitrag oder die Seite, auf der das Inhaltsverzeichnis erscheinen soll.

Hinweis: Sobald Sie ein Inhaltsverzeichnis hinzugefügt haben, werden Sie feststellen, dass der Block „AIOSEO – Inhaltsverzeichnis“ ausgegraut ist. Das liegt daran, dass Sie nur ein Inhaltsverzeichnis pro Beitrag oder Seite haben können.

Das Plugin erkennt automatisch die Überschriften auf der Seite und fügt sie zu Ihrem Inhaltsverzeichnis hinzu. Wenn Sie verschiedene Überschriftenebenen verwenden (z. B. H2 und H3), werden die Überschriften der unteren Ebenen eingerückt, um die Struktur Ihres Inhalts zu verdeutlichen.

Wenn Sie noch dabei sind, den Inhalt Ihres Beitrags oder Ihrer Seite zu schreiben, werden alle Überschriften, die Sie dem Dokument hinzufügen, automatisch dem Inhaltsverzeichnis hinzugefügt.

Anpassen des Inhaltsverzeichnisses mit All in One SEO

Es gibt einige Möglichkeiten, das Inhaltsverzeichnis an Ihre Bedürfnisse anzupassen. Sie können zum Beispiel auf eine Überschrift klicken, um sie umzubenennen. Dadurch wird die Überschrift im Inhaltsverzeichnis umbenannt, nicht aber der Artikel.

Customizing Your Table of Contents

AIOSEO erstellt automatisch Ankerlinks für jede Überschrift. Sie können auf das Link-Symbol klicken, um den Ankertext zu bearbeiten, und dieser wird sowohl im Inhaltsverzeichnis als auch in der Überschrift im Beitragsinhalt geändert.

Sie können auch auf das Augensymbol neben einer der Überschriften klicken, um sie auszublenden. AIOSEO Pro-Nutzer können die Überschriften im Inhaltsverzeichnisblock neu anordnen. Dabei werden die Überschriften im Inhaltsverzeichnis neu angeordnet, nicht aber im Artikel.

In der Seitenleiste finden Sie auch eine Einstellung für den Block. Hier können Sie einen Aufzählungsstil oder eine nummerierte Liste für Ihr Inhaltsverzeichnis wählen.

Your Table of Contents Can Be in a Bulleted or Numbered List

Wenn Sie die Anpassung Ihres WordPress-Inhaltsverzeichnisses abgeschlossen haben, müssen Sie auf die Schaltfläche „Fertig“ klicken, um Ihre Änderungen zu speichern.

Jetzt können Sie sehen, wie das Inhaltsverzeichnis für Ihre Besucher aussehen wird.

Your Table of Contents is a List of Links to Headings in the Post or Page

Es ist eine gute Idee, eine Überschrift oder einen Absatz über dem Inhaltsverzeichnis einzufügen. Dadurch wird den Leserinnen und Lesern deutlich gemacht, dass es sich um ein Inhaltsverzeichnis handelt.

Wenn Ihre Besucher auf einen Link im Inhaltsverzeichnis klicken, werden sie sofort zu dieser Überschrift im Artikel weitergeleitet. So können die Nutzer zu dem Abschnitt springen, der sie am meisten interessiert.

Anchor link preview

Der Grund, warum wir AIOSEOs Inhaltsverzeichnis so schätzen, ist, dass Sie die Überschriften individuell anpassen und Überschriften bei Bedarf ausblenden können.

Dies ist eine wichtige Funktion, die die meisten anderen Plugins für Inhaltsverzeichnisse einfach nicht haben.

Methode 2: Manuelles Hinzufügen eines Inhaltsverzeichnisses in WordPress

Sie können ein Inhaltsverzeichnis auch manuell mit Hilfe von Ankerlinks erstellen, ohne dass Sie ein Plugin benötigen. Dies erfordert jedoch mehr Zeit und Aufwand.

Mehr über Ankerlinks erfahren Sie in unserer Anleitung zum Hinzufügen von Ankerlinks in WordPress.

Eingeben des Inhaltsverzeichnisses

Zunächst müssen Sie einen Block „Liste“ hinzufügen, in den Sie die Überschriften für das Inhaltsverzeichnis einfügen können. Sie können die Überschriften entweder in die Liste eingeben oder sie einzeln aus Ihrem Artikelinhalt kopieren und einfügen.

You Need to Type a List of Headings

Wie man Ankertext zu Überschriftenblöcken hinzufügt

Als nächstes müssen Sie jeder Überschrift, auf die Sie im Inhaltsverzeichnis verweisen möchten, ein Ankerattribut hinzufügen. Dadurch weiß WordPress, wohin es springen soll, wenn ein Besucher auf die Überschrift im Inhaltsverzeichnis klickt.

Klicken Sie zunächst auf die Überschrift, z. B. H2 oder H3. Dann müssen Sie auf den Pfeil „Erweitert“ im Bereich der Blockeinstellungen klicken, um die erweiterten Einstellungen anzuzeigen.

Danach geben Sie ein eindeutiges Wort oder einen Satz ohne Leerzeichen in das Feld „HTML-Anker“ ein. Wenn Sie möchten, können Sie jedes Wort mit Bindestrichen trennen.

You Need to Create an HTML Anchor Attribute for Each Heading

Wiederholen Sie dies anschließend für alle anderen Überschriften, die in das Inhaltsverzeichnis aufgenommen werden sollen.

Tipp: Wenn Sie die Überschrift in dieses Feld einfügen, werden automatisch Bindestriche hinzugefügt. Auf diese Weise können Sie auf einfache Weise eine eindeutige ID erstellen, die auch die Überschrift eindeutig darstellt.

Hinzufügen von Ankerlinks zum Inhaltsverzeichnis

Der letzte Schritt besteht darin, die Überschriften des Inhaltsverzeichnisses mit den von Ihnen erstellten HTML-Ankern zu verknüpfen.

Markieren Sie den ersten Eintrag in Ihrem Listenblock und klicken Sie dann auf das Symbol „Link“ in der Symbolleiste.

Highlight the Heading Text and Click the Link Icon

Als Nächstes sollten Sie ein Hashtag (#) und dann den Ankertext für diese Überschrift eingeben oder einfügen.

Mit dem # wird WordPress angewiesen, zu diesem Abschnitt des aktuellen Beitrags zu springen. Sie fügen weder den Domänennamen noch andere URL-Parameter hinzu.

Type a Hashtag and Then the Anchor Text

Sobald dies geschehen ist, müssen Sie die Eingabetaste drücken oder auf das Symbol „Absenden“ klicken, um den Link zu erstellen.

Der Anker-Link wird zu Ihrer Inhaltsliste hinzugefügt. Wenn Ihre Besucher auf diesen Link klicken, werden sie sofort zu dieser Überschrift im Beitrag oder Seiteninhalt weitergeleitet.

An Anchor Link Is Added to the Table of Contents

Sie können diese Schritte wiederholen, um Ankerlinks zu den anderen Überschriften des Inhaltsverzeichnisses hinzuzufügen.

Wir hoffen, dass dieses Tutorial Ihnen geholfen hat, zu lernen, wie man ein Inhaltsverzeichnis in WordPress-Beiträgen und -Seiten erstellt. Vielleicht interessieren Sie sich auch für unseren Leitfaden zur Steigerung der Besucherzahlen in Ihrem Blog oder für unsere Expertenauswahl der wichtigsten WordPress-Plugins für das Wachstum Ihrer Website.

Wenn Ihnen dieser Artikel gefallen hat, dann abonnieren Sie bitte unseren YouTube-Kanal für WordPress-Videotutorials. Sie können uns auch auf Twitter und Facebook finden.

Offenlegung: Unsere Inhalte werden von unseren Lesern unterstützt. Das bedeutet, dass wir möglicherweise eine Provision verdienen, wenn Sie auf einige unserer Links klicken. Mehr dazu erfahren Sie unter Wie WPBeginner finanziert wird , warum das wichtig ist und wie Sie uns unterstützen können. Hier finden Sie unseren redaktionellen Prozess .

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.

Das ultimative WordPress Toolkit

Erhalte KOSTENLOSEN Zugang zu unserem Toolkit - eine Sammlung von WordPress-bezogenen Produkten und Ressourcen, die jeder Profi haben sollte!

Reader Interactions

71 KommentareEine Antwort hinterlassen

  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. Sam Smith says

    I am in word press post editor and I do not see the blue plus button or the advanced block. How do I see those features?

    • WPBeginner Support says

      If you re using the block editor then you may want to try disabling distraction free editing in the top-right and that should allow you to see the plus again.

      Admin

  3. Ahmed Omar says

    I am already using the first method, and it help my site to appear first in some search results and of course bringing more visitors
    Thank you

  4. ario says

    I tried to create table of content manually like the way you taught us and it worked well, until I added page break and separated the points into different parts or pages. Is there a solution for this?

    • WPBeginner Support says

      If you separate the page then you would need to include the entire URL before the # as well as the anchor to link correctly.

      Admin

  5. Mark says

    Back in the day, when websites were new, we used to call this a Site Map. But yeah, it was kind of expected for the search engines to find a site map on your website.
    Thanks for the reminder and the info.

    • WPBeginner Support says

      If the information added is the same, then there is no difference. The plugin is there to help make the process easier and help ensure any markup is properly added.

      Admin

  6. Tay says

    How can I manually place the TOC on specific pages? It seems I can only disable auto-insertion but I can’t then decide where I want to put the table on the page. Is this possible?

    • WPBeginner Support says

      The table of contents would need to be enabled for pages and then there should be an option when editing the specific page you want to add it to.

      Admin

  7. Muhammad Arslan Sharif says

    What a tutorial and very helpful for me and other who want to add new features in their websites and in blogs. In very short words you explain exceptionally.

  8. Kim Balchios says

    My developer created a Table of Contents on a really long blog I wrote. I edited one of the entries and the link fell off.

    When I try to create a new entry it says „Paste URL or type to search.“ If I add the URL, it will take the reader to the top of the blog not the exact place inside the blog.

  9. David Ellin says

    this video shows me how to create a table of contents within a post. I want to create a table of contents for my entire blog so that the title of each article appears in the TOC. How do I do that?

  10. jean says

    Hi thank you for this informative post!
    Only a small question, what is „override the global settings for this specific post / page.“
    I chose to insert the table of content manually, and when i check only for h2 & h3, the table of content just doesn’t show up at all.

    Thank you!

    • WPBeginner Support says

      That would mean you are telling it to ignore your default settings for the plugin for that specific post/page. If you have no H2 or H3s on the page then there wouldn’t be anything for the plugin to add to the table.

      Admin

    • WPBeginner Support says

      If the page is too short to scroll then there wouldn’t be a reason to have a table of contents. It is a personal preference for the length of a post.

      Admin

  11. SAHIL DHIMAAN says

    Hi, very helpful article

    But….

    Table of content isn’t showing in Mobile, what to do…

    i use AMP plugin also…

    • WPBeginner Support says

      Your AMP plugin would be removing the plugin’s additions. If you reach out to the table of contents plugin’s support they can let you know if they have AMP support.

      Admin

  12. Lucimar says

    Good afternoon!

    Congratulations on the article, it helped me a lot :)

    However, it just didn’t work on amp pages.
    Note: I use the „Accelerated Mobile Pages“ plugin.

    How can I solve?

    Thank you!

    • WPBeginner Support says

      You would want to reach out to the plugin’s support for if there is a recommendation for AMP.

      Admin

  13. Luke Richardson says

    Using easy table of contents, is there an option to create hyperlinks to jump to that particular section when you click on one of the headings in the table.

    Not sure if I’m missing something with the plugin, but when I click on the headings it doesn’t jump to that section at all.

    thanks

    • WPBeginner Support says

      The plugin should be allowing that, you may want to ensure there is enough room between your content and you don’t have any browser addons that would prevent scrolling to a certain section of your page.

      Admin

  14. Tosh Lubek says

    I’ve checked „Initially hide the table of contents“ but the TOC shows every time I open a post with a TOC. Is there something else I need to do?

    • WPBeginner Support says

      You would want to reach out to the plugin’s support to ensure this is not a conflict between the plugin and your theme

      Admin

  15. Oulimata says

    As usual, amazingly detailed and helpful. You guys have definitely become my go-to resource for anything blogging related.

    • WPBeginner Support says

      You would need to enable custom CSS and depending on your theme would determine the CSS needed

      Admin

    • WPBeginner Support says

      You would enable support for the post type you want to have the table of contents in and when you edit one of the types where it is activated, it will have the option at the bottom of the editor to add the table of contents

      Admin

    • WPBeginner Support says

      In the plugin’s settings you would enable support for pages and you should be able to follow the same procedure for pages that you do for posts.

      Admin

  16. Abhishek says

    Hi, is this possible to show/hide individual headings, just by clicking on it, like on Wikipedia?

    I have too many subheadings under each h3 so I want it to be easier to navigate.

  17. Prince Gabriel Okocha says

    I have installed this plugin on my blog following the guideline in this post. But it’s not showing up on my posts. Is there anything I’m doing wrong? I really need this to ASAP

    • WPBeginner Support says

      Hello,

      Please review plugin settings, you need to enable support for the posts and pages. After that edit the post and page and below the post editor you will find TOC settings. From here, you need to check the box ‚Insert table of contents‘ to add it in that particular post.

      Admin

  18. Srinu says

    Thanks for the article it’s working for me, But I am getting with bullets and numbers, in TOC_Box how to change it. I already numbered with h2 tags.
    so its repeated the numbers twice.

  19. Mae says

    Thank you so much! I used this for my Exclusives Library and I love it! Now my subscribers won’t have a difficult time looking for their printables.

    XOXO,
    Mae

  20. Jan Peter Aursnes says

    A fine plugin, but is there any way I can exclude pages? Writing in headings and using * and ⎮ does not work, for me anyway. I am not a tech guy so it could be I just need a bit of explanation.

    Thanks in advance.

  21. Raushan says

    This is best plugin but when i created table of content from this plugin then showing multiple H1 tag which is not good at seo point of view.
    How to solve this ?
    Thanks

  22. Sunil Suresh says

    Thanks. Your article came at the right time for me! I was just now looking for something like this for a client of mine.

Eine Antwort hinterlassen

Danke, dass du einen Kommentar hinterlassen möchtest. Bitte beachte, dass alle Kommentare nach unseren kommentarpolitik moderiert werden und deine E-Mail-Adresse NICHT veröffentlicht wird. Bitte verwende KEINE Schlüsselwörter im Namensfeld. Lass uns ein persönliches und sinnvolles Gespräch führen.