Card
Customize a query (WP_Query) that is used to get posts for a Card.
Last updated
Was this helpful?
Customize a query (WP_Query) that is used to get posts for a Card.
Last updated
Was this helpful?
Please make sure you've installed the latest version of the plugin before using these filters.
Some filters are common and available in both the Basic and Pro versions, where some are only available in the Pro Edition, these have been labelled as "(Pro)".
Do you need to customize something but a filter isn't available? Then and we'll try to add it as soon as possible.
(Pro)
(Pro)
(Pro)
(Pro)
(Pro)
(Pro)
Allows to customize WP_Query arguments that are used to get posts for a Card.
$card_id
(string) Unique ID of the current ACF Card
$page_number
(int) Current page number. By default 1, has another number only within the AJAX pagination.
Allows to apply PHP filtering to the posts found.
Allows to add custom variables to the custom markup.
$custom_variables
(array) An associative array of values, where keys are variable names. These variables can be accessed in the custom markup with brackets, like {VARIABLE_NAME}
$card_id
(string) Unique ID of the current Card
$args
(array) Arguments for WP_Query. See all available .
Itβs a built-in WordPress hook that allows modifying the output of the whole shortcode. Code example shown below. Read more .