latest post

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

Fri Oct 11, 2019 4:44 pm

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
kohbarg
Ssr. Bludit
Posts: 13
Joined: Tue Jun 11, 2019 11:36 am

Sun Oct 13, 2019 5:14 pm

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.
Post Reply