Modify function to print tags/categories/exclude tags/categories/ number of posts
I wonder if you mean this kind of a loop wrapper: wpse_257857_loop( $args = [ ‘post_type’ => ‘page’, ‘posts_per_page’ => 2 ], $before=”template-parts/wpse-before”, $loop = ‘template-parts/wpse-loop’, $after=”template-parts/wpse-after” ); where we define it in the functions.php file, in the current theme directory: /** * Simple loop wrapper */ function wpse_257857_loop( $args, $before, $loop, $after ) { … Read more