latest post

Post Reply
User avatar
abdulhalim
Master Bludit
Posts: 128
Joined: Thu Mar 10, 2016 6:25 pm
Location: Bandar Abbas
Been thanked: 4 times
Contact:

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
Sr. Bludit
Posts: 33
Joined: Tue Jun 11, 2019 11:36 am
Has thanked: 2 times
Been thanked: 2 times

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