Forum
perch _custom 'start' trouble
Hello again, I recently had the same trouble with perch_content_custom
but now am having it with perch_blog_custom
I have a post listing page. I want the first post to use a different template than the rest...
<?php
PerchSystem::set_var('page', 'home');
perch_blog_custom(array(
'template' => 'feature_post.html',
'sort' => 'postDateTime',
'sort-order' => 'DESC',
'count' => 1,
));
perch_blog_custom(array(
'count' => 6,
'start' => 2,
'template' => 'post_in_list.html',
'sort' => 'postDateTime',
'sort-order' => 'DESC',
'paging' => false,
));
?>
I believe the answer that worked for me last time was that 'start' always needs 'count'. However, the second perch_blog call here still returns the most recent post.
Anything jumping out?
Can you show me the output from debug?
Hey, I'm sorry I just got back to this.
This is what gets output to the page
Yes, that doesn't look right. I'll take a look at it.
Hey Drew, just checking in... I noticed there was a new Perch Blog version 4.5.4. I drop that and perch 2.7.3 core in and am still having the same issue. Should I be expecting no change in this version?
I was hoping there might be, but if not I'll take another look.
Yeah, my output is still the same, sorry!
Hello again, I just revisited this while updating to perch 2.7.4.
Still the same result.
Yes, it wasn't included in 2.7.4.