WP Featured, Most Viewed, Latest posts template
It’s impossible to find a free WP Featured, Most Viewed, Latest posts template or plugin, so I made it with the help of qwen.ai.
Free to use, no questions asked, no support provided, simple to understand instructions, help yourselves.
However, it’s manually installed, with only 4 steps.
Remember, adding this will only show this, so no point having anything in that page.
Any writing on the page will not be seen; I designed it for my homepage. So if you need writing, add it to the footer.
After pasting the PHP file in your theme folder and adding the code at the end of functions.php.
You will now see a template in Page Attributes called featured and latest post, select it to add to any page.
Create a category called featured, all lowercase, and add posts you want in the featured section.
Now you will see 3 sections on that page with this template, having 6 posts per section.
Featured:
Most Viewed:
Latest Additions:
You will only see the thumbnail of the posts with the title inside in small writing.
To change how many posts you want seen in sections, just change the number below for each section in the template PHP file.
‘posts_per_page’ => 6,
Apologies for my spelling in the instruction text file located in the zip. You also have the PHP file in its own folder and a text file inside a folder, which has the code to paste to the end of your functions.php
So all you need is access to your theme folder to upload one file and add to another; the rest is just 2 steps inside your WP backend.
This is only for me.