How to create table of content in wordpress without plugin

I checked most of the website those are using the table of content. But most Tables of Content Plugin are untested with the current WordPress version.

Does anyone know how I can create Table of Content without Plugin?

Here are some Table of content blog posts

  1. https://www.wpbeginner.com/plugins/how-to-create-a-table-of-content-in-wordpress-posts-and-pages/

  2. https://onlinemediamasters.com/siteground-wordpress-hosting-review/

Or Anyone can tell me which plugin there are using to create that type Table of Content, or custom maded TOC without plugin?

Thanks In Advance :love_letter:

2 Likes
1 Like

Thanks

Hello Mainak,

Creating Table of Content manually is easy. These are steps.

2 Likes

You can follow this link too for more information about Anchor Text and Links

1 Like

Thanks a lot :love_letter:

1 Like

Again Thank you

1 Like

You’re welcome! :slight_smile:

I do the same for my website

<div class="tocg clear">
<div class="tocg-title">Table of Contents</div>
<nav>
<ul>
<li><a id="tocg-a" href="#"></a></li>
<li><a id="tocg-a" href="#"></a></li>
<li><a id="tocg-a" href="#"></a></li>
<li><a id="tocg-a" href="#"></a></li>
</ul>
</nav></div>
<a name=""></a> add this line into your headings.

I use this basic code to create Table of Content and this gives me the freedom to do anything with it. (You need to add style to make it look attractive)

1 Like

You can use html or just an hack, Go to any site with table and press ctrl + u and copy the code and make changes and paste on your webpage.

1 Like

You can do it from html table.

2 Likes