Slim SEO
Last updated
Last updated
Starting from version 2.0.22, ACPT is fully integrated with Slim SEO.
Use this syntax to include ACPT fields in SEO snippets:
Where box
and field
are, respectively, the box and field slugs.
You can manually type the strings or select the fields from the dynamic data selector:
The supported field types are:
Address
Address multiple
Checkbox
Color
Country
Currency
Date
Date range
Date time
Editor
HTML
Length
List
Number
Password
Phone
Post
Post multiple
QR Code
Relational
Select
Select multiple
Term
Term multiple
Textarea
Text
Toggle
User
User multiple
URL
Weight
Slim SEO uses a dot notation for extracting data from arrays.
For example, let's say that you have a three-item list field.
If you call {{ acpt.box_list }}
, you will have something like this:
Because the array is imploded to a comma-separated string.
But if you want to display only the second value, you can use this syntax:
Please note that you need to follow a 0-based counting.