gdkob_toc

Developer Knowledge Level

This content is intended for WordPress developers, and it may require coding knowledge of WordPress, PHP, and JavaScript. Code examples provided here may contain errors or needs some additional coding. Make sure to test the code before using it on a live website!

This shortcode is used to display Table of contents. This will display TOC only if the current post has enough headings to generate TOC. If not, it will display nothing.

Attributes

Shortcode has several attributes:

  • class: additional CSS class name to add
  • title: display the ‘Table of Contents’ title. The default is ‘true’.

Example

Shortcode:

[gdkob_toc]

0
0
427
Rate this reference

You are not allowed to rate this post.

Leave a Comment