This template enables you to display posts from all or any categories on one page like the following example:
The template also enables you to add content to the editor which is displayed before the featured images for each category.
The code includes 2 sets of $args.
- 1 set for get_categories
- 1 set for WP_Query
These $args enable you to use any parameters which effect each category as well as the large range of WP_Query parameters.
All you need to do is use a code editor to paste the code into a new file named something like custom.php and upload to your child themes root directory.
You can then select the page template named Post Images From Categories from the drop down menu in the Page Attributes box.
Here’s the code:
You need to pay to fully access this tutorial.
Enjoy unlimited access & coding support by registering.