Hi @Demon, you can hook into available filter BASE_FILTER_BEFORE_GET_FRONT_PAGE_ITEM
to modify the get posts list query in blog page.
use Illuminate\Contracts\Database\Eloquent\Builder;
use Botble\Blog\Models\Post;
add_filter(BASE_FILTER_BEFORE_GET_FRONT_PAGE_ITEM, function (Builder $query) {
if ($query->getModel() instanceof Post) {
return $query->where('type', 'video');
}
return $query;
}, 999);