This forum has moved to a new location and is in read-only mode. Please visit talk.octobercms.com to access the new location.
Hi,
I wish to display a feed from the blog on my home page, but I don't simply want the latest posts of one specific category, I want to show latest posts from any category or sub-category.
For example; Cooking, Baking, Salads that are sub-categories of Recipes. How can I display latest posts from random categories? Each time the user visits the page it will show posts from a different category.
Thanks for your help!
Hi. You can collect latest posts in php section of your page so it will be available via twig markup to show up. Look here for the start idea: https://octobercms.com/docs/cms/themes#php-section
Thanks for your reply Shantarli.
I still could not get the random Categories, so instead Iv'e created separate partials and used the twig random() function.
1-3 of 3