# SW Blog Related Posts — AI Agent Documentation **Module path:** `smithworks-2025/sw-modules/SW Blog Related Posts.module` **Last updated:** 2026-02-16 --- ## 1. Overview SW Blog Related Posts displays related blog posts on **blog post** pages. It shows posts that share tags with the current post (excluding the current post). Use it for "Related Posts" or "You might also like" sections. **Use this module on blog post templates.** For blog listing and website pages, use **SW Blog Cards** instead. When **Use as related posts** is ON (default): - **Tag Filter blank** — Automatic related posts by first tag of current post. - **Tag Filter set** — Filter by that tag. Supports grid, slider, and infinite scroll (On scroll or Load more button). ### Related Modules | Module | Relationship | |--------|--------------| | **SW Blog Cards** | For blog listing pages and website pages. SW Blog Related Posts is for single post pages only. | | **SW Cards** | Generic card repeater for non-blog content. SW Blog Related Posts is for blog posts only. | --- ## 2. Configuration Reference ### Content Tab - **Headings** (repeater) — One or more headings above the cards. - **Content area** — Rich text below headings. - **Content style** — Typography for Content Area: Default, Large (text balanced), Large (text full-width), Small, Blockquote. - **CTA buttons** — Optional buttons. - **Blog** — When not using related posts. - **Use as related posts** — ON = automatic related posts; OFF = use Blog field. - **Tag Filter** — Blank = related by tag; set = filter by that tag. - **Post Display Settings** — Posts to show, Post start, Use infinite scroll, Max posts, Load trigger, Load more button. - **Post Card** — Card content settings. ### Style Tab - **Module Settings** — Spacing, max width, heights. - **Module Background Settings** — Background option, colors, images. - **Content Area Settings** — Text align, spacing. - **Content Colors** — Text and link colors. - **Cards Layout** — Cards per row, card colors, border, tags, spacing. - **Slider Settings** — Visible when Use infinite scroll = OFF. Use as slider, arrows, dots, autoplay. --- ## 3. Common Tasks ("How Do I…") - **Show related posts on a blog post** → Add SW Blog Related Posts to blog post template (e.g. After Post drop zone). Use as related posts = ON. Leave Tag Filter blank for automatic related posts by tag. - **Filter related posts by a specific tag** → Content → Tag Filter → Select tag. - **Use slider** → Use infinite scroll = OFF; Style → Slider settings → Use as slider = ON. - **Use infinite scroll** → Content → Post Display Settings → Use infinite scroll = ON. --- ## 4. Document Version **Module:** SW Blog Related Posts (smithworks-2025). **Doc last updated:** 2026-02-16. **2026-02-16:** Content style option. **2026-02-12:** Initial AI documentation.