Post Selection Shortcode
Default shortcode
[avf-post-selection name="Name of Post Selection" id="651d5d747423a"]<?php
// a) using do_shortcode
echo do_shortcode('[avf-post-selection name="Name of Post Selection" 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, Post Selection shortcodes contain two arguments: "name" and "id". The "name" is used for clarification purposes only and doesn't play any functional role. The "id" argument is the most important as it allows Advanced Views to associate the shortcode with a specific Post Selection.
Last updated