Comment on page
Shortcode
Each ACF Card has a shortcode that displays the assigned ACF View. A Twig template is automatically created by the plugin.
Shortcode default example;
[acf_cards card-id="651d5d747423a" name="Name of Card"]
Note: Displays the Card, posts will be queried according to the filters and displayed according to the selected ACF View, replace card-id="651d5d747423a" with the ID of your Card. See full doc
Shortcode example to restrict access to the Card;
[acf_cards card-id="651d5d747423a" name="Name of Card" user-with-roles="ROLE1,ROLE2" user-without-roles="ROLE1,ROLE2"]
Note: Insert the Role names in the ‘user-with-roles’ and/or ‘user-without-roles’ argument replacing “ROLE1,ROLE2” with your user roles, replace card-id="651d5d747423a" with the ID of your Card. See full doc
Last modified 1mo ago