I would like to make my home page in such a way it shows the most viewed, random and recent posts by thre differents part by limitin the number of posts......give me at least some hints or idea to try it. Thank you in advance
|
I've implemented this before with custom queries and widgets. You have to be tracking all of these stats, of course, but if you are, it's a rather simple matter to build a widget that displays it and drop it in. If you're not using widgets, you can do the same, it will just take a bit more coding on your part, but use the same concept. Without specifics, I don't think I can go much deeper on implementation for most viewed, but I can give you the other two. To get random posts, you can just do a Same deal for most recent posts, Docs: |
|||||||||||
|
|
You can also create a 'sidebar' that is visible only on your home page using:
Register the sidebar and use the existing widgets to place the required widgets into the new sidebar. |
|||
|