Card Shortcode
Default shortcode
[avf_card name="Name of Card" card-id="651d5d747423a"]
<?php
// a) using do_shortcode
echo do_shortcode('[avf_card name="Name of Card" card-id="651d5d747423a"]');
// b) using the special plugin class
use Org\Wplake\Advanced_Views\Bridge\Advanced_Views;
echo Advanced_Views::card_shortcode('651d5d747423a', 'name')
->render();
By default, Card shortcodes contain two arguments: "name" and "card-id". The "name" is used for clarification purposes only and doesn't play any functional role. The "card-id" argument is the most important as it allows Advanced Views to associate the shortcode with a specific Card.
Last updated