latest post

Post Reply
User avatar
Master Bludit
Posts: 104
Joined: Thu Mar 10, 2016 6:25 pm

Fri Oct 11, 2019 4:44 pm


How can I show the latest three posts on the index page and the rest posts on the blog page (e.g. 10 posts per page)?

I mean if I want to create a new theme for Bludit, I need something like this.
I can show content with

Code: Select all

<?php foreach ($content as $page): ?>
but this code is depend on Bludit core.

Ssr. Bludit
Posts: 21
Joined: Tue Jun 11, 2019 11:36 am

Sun Oct 13, 2019 5:14 pm

latest posts I've seen on devtheme

Code: Select all

$listOfKeys = $pages->getList(1, 3);
Maybe you can use that.
Post Reply