Page 1 of 1

latest post

Posted: Fri Oct 11, 2019 4:44 pm
by abdulhalim
Hello,

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.

Cheers,
Abdulhalim

Re: latest post

Posted: Sun Oct 13, 2019 5:14 pm
by kohbarg
Hi,
latest posts I've seen on devtheme https://themes.bludit.com/theme/devtheme

Code: Select all

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