Add query name to blog shortcode

This commit is contained in:
Tetrakern 2023-09-16 13:54:50 +02:00
parent 0cf4a16608
commit 9c0bce85bc
2 changed files with 2 additions and 0 deletions

View File

@ -692,6 +692,7 @@ Filters the query arguments in the `fictioneer_article_cards` shortcode. The opt
Filters the query arguments in the `fictioneer_blog` shortcode.
**$query_args:**
* $fictioneer_query_name (string) `'blog_shortcode'`
* $post_type (string) `post`
* $post_status (string) `'publish'`
* $ignore_sticky_posts (boolean) `$args['ignore_sticky']`

View File

@ -1339,6 +1339,7 @@ function fictioneer_shortcode_blog( $attr ) {
// Query arguments
$query_args = array(
'fictioneer_query_name' => 'blog_shortcode',
'post_type' => 'post',
'post_status' => 'publish',
'paged' => $args['page'],