1. Home
  2. Docs
  3. Attesa PRO
  4. Shortcodes

Shortcodes

NB: Shortcodes are available only with Attesa PRO plugin.

On this page you will find the list of shortcodes available for Attesa PRO addon (it will be updated every time new shortocodes are inserted).

Ajax Search

The shortcode to use to show an ajax search box is:

[attesa-ajax-search]

The shortcode can be customized with some settings:

  • placeholder: if you want to change the placeholder text.
  • image: yes/no if you wanto to show/hide the featured images in the search box.
  • posttype: if you want to show results only for a specific post type (post, page, product, etc…).
  • elements: the number of elements you want to show.
  • allresults: yes/no if you want to show/hide the link to all results at the end.

Example of shortcode with custom settings:

[attesa-ajax-search placeholder="Search here..." image="no" elements="10"]

Table of contents

The shortcode to use the table of contents in a page/post is:

[attesa-toc]

The shortcode can be customized with some settings:

  • title: customize the title of the table of contents

Example of shortcode with custom settings:

[attesa-toc title="My table of contents"]

NB: If you want to use the table of contents shortcode, make sure the “Table of contents” option is enabled from “Attesa Theme-> Global Settings“.