Have a blog on your Wix site? Here's how you can create a customized blog experience for your site visitors:
Step 1: Access your blog info
First you need to get information about your blog. You can do that by:
Using the getPost() API to get information about the current post.
Querying your built-in Wix blog databases, the "Blog/Posts" and "Blog/Categories" collections.
Step 2: Use your blog info
Use the information you have to create a customized blog experience. For example, you can filter your blog posts according to views or likes to display popular posts, use the information you have about your blog categories to create a custom category page, or display related posts that share the same hashtag.
Check out these custom blog example sites, which you can adapt according to your needs:
Custom Post Page: Add extra page elements and information to the default post page.
Custom Comments: Create a custom comments section for visitors who aren't site members.
Related Posts: Display posts related to the currently displayed post.
Trending Posts: Create a trending post feed based on the number of likes and views.
Custom Like Button: Create a custom "like" button.
Tip! You can also create a custom search for specific blog posts using the Wix Search blog schema.