public act_display_post ( array $user_filters = [] ) | ||
$user_filters | array | Additional arguments used to get the page content |
public function act_display_post($user_filters = array())
{
$paramarray['fallback'] = array('{$type}.{$id}', '{$type}.{$slug}', '{$type}.tag.{$posttag}', '{$type}.single', '{$type}.multiple', 'single', 'multiple');
// Does the same as a Post::get()
$default_filters = array('fetch_fn' => 'get_row', 'limit' => 1);
// Remove the page from filters.
$page_key = array_search('page', $this->valid_filters);
unset($this->valid_filters[$page_key]);
$paramarray['user_filters'] = array_merge($default_filters, $user_filters);
return $this->act_display($paramarray);
}