Blog/Posts Filter (categories & hashtags)

Hi there,
This code works for me

$w.onReady(function () {
    wixData.query("Blog/Posts")
        .hasSome("hashtags", "2018")
        .find()
        .then(results => {
            $w("#repeater1").data = results.items;
        })
});

And this code does not work

$w.onReady(function () {
    wixData.query("Blog/Posts")
        .hasSome("categories", "Новости")
        .find()
        .then(results => {
            $w("#repeater1").data = results.items;
        })
});

Any ideas? Why can’t I filter blog categories?
Thanks.

Hello.

Note that the categories field of the posts field is a reference field . Therefore, to filter your collection using a category you need to go to the Categories collection copy the category ID and use it instead of the work ‘Новости’ .

Good luck!

This code for the hashtags don’t work with the new blog !