groar
Hi. I use this query for display latest three published posts:
use Radiantweb\Problog\Models\Post;
function onStart(){
$this['posts'] = Post::isPublished()
->orderBy('published_at', 'desc')
->take('3')
->with('categories')
->get();
}
What I need to change , that it display only the posts from a certain category (eg. news), or certain tag (eg. sport)?
Thanks for helping.
Last updated
ChadStrat
you should be able to simply pre-dispose the qty and filters in the blogList component. have you tried that? You may also want to look that the code in the blogList component.
1-3 of 3