Post Selection Shortcode

circle-info

This page contains Post Selections specific shortcode arguments. You can read about general arguments, that are the same for Layouts and Post Selections herearrow-up-right.

Default shortcode

Classic shortcodearrow-up-right:

[avf-post-selection name="Name of Post Selection" id="651d5d747423a"]
circle-info

Note: this displays the Post Selection, posts will be queried according to the filters and displayed according to the selected Layout, replace id="651d5d747423a" with the ID of your Post Selection.

In PHP codearrow-up-right:

<?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