Good evening,
I modified the wix post page with an additional collection to show more data on the post page. At the end of the page I want to show a custom blog list in a repeater showing related posts corresponding to the article shown. Here is my code snippet:
const PostMaster = “PostMaster”;
wixData.query(PostMaster)
.eq(“categories”, “EN - FINANCE”)
.find()
.then((results) => {
console.log(results.items);
$w(‘#recentArticlesRepeater’).data = results.items;
})
.catch((err) => {
console.log(err);
})
I want that the “categories” is equal to the category of the post shown on the page instead the “EN - FINANCE”. Any ideas how to get the post category?