Add query name to blog shortcode
This commit is contained in:
parent
0cf4a16608
commit
9c0bce85bc
@ -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']`
|
||||
|
@ -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'],
|
||||
|
Loading…
x
Reference in New Issue
Block a user