Table of contents (Blogger and WordPress)
What are the use of table of contents? How to make blog table of content, for blogger and WordPress platform?
Table of contents aims to demonstrate the entire contents of the article is there to facilitate the reader find the desired article. This thing we need for visitor who want to explore the blog article. Maybe want to find archive article or another reason.
In principle, table of contents take advantage of blog content rss feeds. See the script code below.
In Blogger platform you can use this code (based on adesanusi code) if you want to place it as sidebar widget:
<div ;="" margin="5px" style="border: 2px solid #ffffff; height: auto; overflow: auto;"> <script src="https://adesanusi.googlepages.com/daftar-isi.txt"> </script><script> var numposts = 1000;var showpostdate = true;var showpostsummary = false;var numchars = 100;var standardstyling = true; </script><script src="https://vmancer.blogspot.com/feeds/posts/default?orderby=published&alt=json-in-script&max-results=999&callback=showrecentposts"> </script> </div>
But… if you want to place it on static page or regular page, better use this code below:
<div style="border: 2px solid #ffffff; overflow: auto; height: 350px;" margin="5px" ;>
<script style="text/javascript" src="https://adesanusi.googlepages.com/daftar-isi.txt"></script><script style="text/javascript">var numposts = 1000;var showpostdate = false;var showpostsummary = false;var numchars = 100;var standardstyling = true;</script><script src=http://vmancer.blogspot.com/feeds/posts/default?orderby=published&alt=json-in-script&max-results=999&callback=showrecentposts></script> </div>
Note:
-
Change the red writing with your Blogger address.
-
And change the blue writing if you have more than 999 amount article.
For example… my Blogger sitemap, VMANCER Blog Site.
How about if you use WordPress platform?
You can use table of content plugins. Just search on add new plugins page about table of content plugin, for example Table of Contents Creator.
To make table of contents with the plugin, just put this code…
<-- toc-creator -->
….. on a page as trigger.
Now you will have table of content page on your WordPress blog.
Interested in making table of contents without a plugin? Read article: Simple table of contents, it doesn’t need any plugins.