公开用户主页文章双列实现

This commit is contained in:
2026-08-20 14:20:20 +08:00
parent c4e162839c
commit 5f01b3b316
3 changed files with 23 additions and 2 deletions
+7 -2
View File
@@ -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,