$Post and total postcount
- Edi
- Site Admin
- Posts: 3121
- Joined: Sun Aug 09, 2015 5:01 pm
- Location: Zurich
- Has thanked: 54 times
- Been thanked: 77 times
- Contact:
There is a discussion about this with a solution atauauteru wrote:How do I get the total posts as a integer on my website?
Post count (and a few more)
There are alsoAlso, what other possibilities exists when u use: $Post->
permalink()
description()
title()
content()
user()
date()
coverImage()
tags()
and beside this
status()
allowComments()
Clickwork - Websites mit Bludit | Planet Bludit - Tipps und Snippets
Thanks! One more thing, how do I make visible some posts (for example, only show posts from number 5th to number 10th)Edi wrote:There is a discussion about this with a solution atauauteru wrote:How do I get the total posts as a integer on my website?
Post count (and a few more)
There are alsoAlso, what other possibilities exists when u use: $Post->
permalink()
description()
title()
content()
user()
date()
coverImage()
tags()
and beside this
status()
allowComments()
Hi, try with this function
Code: Select all
$posts = buildPostsForPage($pageNumber=1, $amount=5, $removeUnpublished=true, $tagKey=false);
foreach( $posts as $Post) {
echo $Post->title();
}
Oh thanks! It worked^^diego wrote:Hi, try with this function
Code: Select all
$posts = buildPostsForPage($pageNumber=1, $amount=5, $removeUnpublished=true, $tagKey=false); foreach( $posts as $Post) { echo $Post->title(); }