Popular Posts (Pages) Widget #105
taufik-nurrohman
started this conversation in
Ideas
Replies: 3 comments 4 replies
-
kang, cara memanggil gambar di popular post gimana kang? kalau pake ini <?php
$path = "article";
$pages = Pages::from(LOT . DS . 'page' . DS . $path);
$take = 10;
if ($pages->count){
$pages->sort([1, 'view']);
$pages->chunk($take, 0);
}
?>
<?php foreach($pages as $page): ?>
<article class="post post-outer-container hover" id="page:<?=$page->id?>">
<h3><a href="<?=$page->link;?>"><?=$page->title;?></a></h3>
<img src="<?= $image;?>"
</article>
<?php endforeach; ?> |
Beta Was this translation helpful? Give feedback.
2 replies
-
kang, popular postnya bisa gak di atur supaya bisa tampil berdasarkan mingguan/ bulanan/ tahunan, seperti popular post blogger, karena niche saya mengharuskan popular post tampil berdasarkan mingguan |
Beta Was this translation helpful? Give feedback.
2 replies
-
oh iyaa
Pada tanggal Sab, 8 Jan 2022 12.59 Taufik Nurrohman <
***@***.***> menulis:
… Nggak bisa mas karena ekstensi view cuma nyimpen data angka aja, nggak
pakai tanggalnya juga. Kalau pakai tanggalnya nanti ukurannya bisa bengkak
karena file diisi terus sama pengunjung.
—
Reply to this email directly, view it on GitHub
<#105 (reply in thread)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AJLLOEZFPCSJBJBLR2CTHN3UU7HDTANCNFSM42WVBTLQ>
.
Triage notifications on the go with GitHub Mobile for iOS
<https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675>
or Android
<https://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub>.
You are receiving this because you commented.Message ID:
***@***.***>
|
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Requires view extension.
Usage
Beta Was this translation helpful? Give feedback.
All reactions