> For the complete documentation index, see [llms.txt](https://docs.probloggertemplates.com/guides/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.probloggertemplates.com/guides/seoflex/getting-started/table-of-contents.md).

# 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="/files/Yq0JaeWc1N5dd7SLWHn7" alt="Table of contents" width="533"><figcaption></figcaption></figure>
