Take the 2-minute tour ×
WordPress Development Stack Exchange is a question and answer site for WordPress developers and administrators. It's 100% free, no registration required.

I am looking for a simple TOC plugin for WordPress that would create a ToC similar to the one from MediaWiki (Wikipedia). Usually I need this only for big pages and the TOC needs to be generated based on heading from the post.

Considering that the number of pages need TOC is quite small, it should be ok to enable this plugin only for some of them.

I found several solutions, but none of them seamed ok. The closest one was Hackadelic SEO Table Of Contents, but this one had two big issues: contained a AD link and no way to enable it only for specific pages.

share|improve this question

2 Answers 2

check out this one http://scott.yang.id.au/code/toc-generator/

seems to answer your requirements.

Update

after reading the comment i figured that i could take a crack at it and i came up with this:

Simple TOC enjoy!

no style is implemented so you can do what ever you want with it with the provided classes. enjoy.

share|improve this answer
    
This is quite old (2006) and has some annoying bugs. I’ve used it but wouldn’t recommend it anymore. –  toscho Apr 30 '11 at 21:28
    
@toscho: i guess i've jump with an answer and yeah its not that good, so i cooked a quick one. –  Bainternet Apr 30 '11 at 23:15
    
It would be ok with one remark, there is no reason for using special tags instead of detecting HTML heading elements. –  sorin May 1 '11 at 8:10
    
No, but i was aiming at a wiki like markup. –  Bainternet May 1 '11 at 8:13

You might want to give Table of Contents Plus a try. The TOC is added automatically, but you can choose the minimum number of headings. You can make some customisation in the behaviour and choose different styles.

share|improve this answer

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.