公开用户主页文章双列实现
This commit is contained in:
@@ -22,9 +22,14 @@ extract($args, EXTR_SKIP); // phpcs:ignore WordPress.PHP.DontExtract.extract_ext
|
||||
'no_found_rows' => false,
|
||||
]);
|
||||
$author_render_config = aksrt_resolve_post_list_render_config([
|
||||
'context' => 'author',
|
||||
'context' => 'author',
|
||||
'overrides' => [
|
||||
'type' => 'list',
|
||||
'no_author' => true,
|
||||
'no_margin' => true,
|
||||
],
|
||||
]);
|
||||
aksrt_render_post_list(array_merge($author_render_config, ['wrapper_class' => 'profile-list']), $author_posts);
|
||||
aksrt_render_post_list(array_merge($author_render_config, ['wrapper_class' => 'aksrt-user-home__post-list']), $author_posts);
|
||||
aksrt_render_pagination($author_posts, [
|
||||
'query_context' => 'author',
|
||||
'render_config' => $author_render_config,
|
||||
|
||||
Reference in New Issue
Block a user