# Table of Contents

This function is available for posts and pages and can be added easily via shortcode.

Shortcode: `{getToc} $title={Table of Contents} $count={Boolean} $expanded={Boolean}`&#x20;

Count Option: This attribute is optional! Available values are `true` or `false`.&#x20;

Expanded Option: This attribute is optional! Available values are `true` or `false`.

{% hint style="info" %}
INFO: After adding the shortcode, apply the **Bold** style.&#x20;
{% endhint %}

**Example:**

<figure><img src="https://content.gitbook.com/content/Lgk0Bukp3MlddTFYiGbP/blobs/XYT5POQEwnZECOB8avGp/image.png" alt="Table of contents" width="375"><figcaption></figcaption></figure>
