This WordPress plugin creates a table of contents based on the heading structure. It automatically adds anchor links for every heading.
Use the f1_toc()
function to render the table of contents with markup. An optional paramater called limit
can be used to only show headings up to a certain level. Example:
// Only show <H1> and <H2> headings in the table of contents