Skip to content

Onboarding archive templates show posts outside the current category #187

Closed

Description

@pirate-bot

Summary

Raft's selectable onboarding archive templates can display posts from categories other than the category being viewed. A category archive is expected to limit its post list to that category, but the affected templates run an independent posts query instead. This makes category navigation unreliable and led the reporting user to deactivate the theme.

Customer context

Product / area: Raft onboarding archive templates
Version: 1.1.14
Environment: WordPress site; further environment details were not provided
Integration / third party: The archive variants are exposed through the Otter onboarding theme-support configuration; the submission did not identify which variant was selected
Reported error / symptom: Category pages display posts from all categories
Impact: The user switched themes after 10 days and reported that permalink flushing, disabling plugins, and a custom pre_get_posts snippet did not resolve the behavior.

Reproduction notes

Reported workflow:

  1. Use Raft 1.1.14 with posts assigned to different categories.
  2. Visit a category archive.
  3. Observe posts belonging to other categories.

The user reported trying permalink flushing, disabling plugins, and a custom pre_get_posts snippet without success. Repository inspection confirms the failure path when any of Raft's three onboarding archive variants is selected, but the submission does not state which saved archive template was active. No runtime reproduction was performed.

Diagnosis

Conclusion

Raft 1.1.14 contains a definite category-filtering defect in its three selectable onboarding archive templates. Each affected template declares an independent Query block with inherit:false, so the archive's category context is not used by that block. Raft's default archive uses inherit:true, and commit a4d678a78c6f044cee9dbeb8762e74c22c29fb54 previously corrected the same visible behavior there for v1.0.6. The affected variants were introduced later in commit 1bff20e8d2ca31de1611721a249c84b953c6a41a and are present unchanged in tag v1.1.14.

Where this likely occurs

  • User-visible surface: category archives using an onboarding-selected Archive Boxed, Archive Cards, or Archive Row template.
  • inc/Core.php — Raft\Core theme-support setup, lines 123–141: exposes the three archive files as selectable otter-onboarding templates.
  • library/archive/archive-boxed.php — returned Archive Boxed template, lines 18–20: its Query block has inherit:false.
  • library/archive/archive-cards.php — returned Archive Cards template, lines 20–22: its Query block has inherit:false.
  • library/archive/archive-rows.php — returned Archive Rows template, lines 18–20: its Query block has inherit:false.
  • templates/archive.html — default archive template, lines 16–20: the corresponding Query block has inherit:true; commit a4d678a changed this from false to true when closing issue Category pages shows posts from all categories #23.
  • Git history: commit 1bff20e8 introduced the affected onboarding templates, first released in v1.1.0; tag inspection confirms the same query attributes in reported version v1.1.14.

Engineering notes

The inspected defect is limited to the three onboarding archive variants; the shipped default templates/archive.html is configured to inherit archive context. The customer's exact saved template was not provided, so linking their installation to one of these variants is an inference, while the defect in the variants themselves is source-confirmed. A pre_get_posts adjustment may not affect the displayed block because these variants request an independent block query rather than inheriting the archive query. WordPress core Query block internals were not locally inspected; the expected meaning of this attribute is corroborated by Raft's prior issue #23, its maintainer guidance, and the v1.0.6 correction. Issue #23 is closed and addressed only the older default template, so it is not an open tracker for the currently affected onboarding files.

Test coverage status

The available unit suite only checks theme constants and core loading in tests/test-load.php; it does not exercise archive rendering or onboarding templates. No relevant integration or end-to-end coverage was found during inspection.

What to verify or explore next

  • Reproduce on a clean WordPress installation with Raft 1.1.14 by selecting each of Archive Boxed, Archive Cards, and Archive Row, then viewing a category containing only a subset of published posts.
  • Compare the same category archive while using the default Archive template.
  • Verify category filtering and pagination separately for each affected archive variant.
  • Run the WordPress PHPUnit suite after adding or locating coverage that renders category archives from onboarding-selected templates.

Unknowns / follow-up

  • The deactivation submission does not identify which archive variant or saved template content was active.
  • WordPress and Otter versions were not provided.
  • Runtime reproduction was not performed in this investigation.

Confidence

Confidence: 94/100

Raft 1.1.14 ships three selectable archive templates whose Query blocks do not inherit the category archive context, matching the reported symptom. The default archive was corrected for this same behavior in v1.0.6, but the later onboarding variants remain affected and no open issue tracks them.


Source: automated uninstall feedback — raft, 2026-09-16
Generated by bug-report-triage (ID: bug-report-triage_6aab743d306148.85100504)

Activity

  1. added theissue type on Sep 17, 2026
  2. added
    bugThis label could be used to identify issues that are caused by a defect in the product.
    on Oct 19, 2026
  3. girishpanchal30 commented on Oct 27, 2026

    @girishpanchal30
    Contributor

    I have fixed it with PR #195

  4. milicavs commented on Oct 28, 2026

    @milicavs

    🧪 QA steps and test links

    When a Blog Page layout is picked in Raft's Theme Setup wizard (Archive Boxed, Archive Cards or Archive Row), category pages list posts from every category instead of only the category being viewed. The default Archive template is not affected.

    Link Build Bot check
    Reproduce the bug Raft 1.1.16 (released) + Otter Blocks (latest) ✅ Reproduced: the News category page lists all 6 posts, including Recipes post 1 to 3 and Hello world
    Verify the fix PR #195 build c0489c0 + Otter Blocks (latest) ✅ Fixed: the News category page lists only News post 1 and News post 2

    In the links:

    • Steps 1 to 4 are already done, and the links open on the News category page.
    • The Archive Cards layout is saved straight into the Blog Page template instead of through the wizard, the same result as picking it there.
    • Tools → QA Logs shows debug.log.

    Reproduce on Raft 1.1.16:

    1. With Raft and Otter Blocks active, add a category News with 2 posts and a category Recipes with 3 posts.
    2. Go to Appearance → Theme Setup.
    3. Continue to "Select a template for your Blog Page" and pick Archive Cards.
    4. Finish the wizard.
    5. Go to Posts → Categories, hover News and click View.
    • Bug: the News page lists every post on the site, Recipes posts included.
    • Fixed: the News page lists only the 2 News posts.
    Edge cases
    • Archive Boxed and Archive Row layouts: the category page lists only that category's posts.
    • Tag, author and date archives with a picked layout: only the matching posts.
    • More posts in a category than Settings → Reading "Blog pages show at most": pagination pages through that category only.
    • A site that picked a layout before updating Raft: the saved Blog Page template keeps the old behavior until the layout is picked again in Theme Setup.
    • Default Archive template (no layout picked): still lists only the category's posts.

    Fix: #195 (open)

  5. pirate-bot commented on Oct 28, 2026

    @pirate-bot
    ContributorAuthor

    QA agent — 🔴 Has problems · New selections are fixed, but previously saved archive layouts still show unrelated posts.

    Tested all three onboarding archive layouts with separate categories and multi-page results. Fresh selections filter correctly, pagination follows Reading settings, and tag, author and date archives show matching posts only. Layouts saved before upgrading still show unrelated categories, just as on the base build. Selecting the layout again imports the corrected version.

    Problems found

    • ❌ A category archive using an onboarding layout saved before the Raft update lists only the current category's posts after updating to the candidate.
      The upgraded Cards News page still lists 10 posts: only News post 02 is from News, alongside 9 unrelated posts. Reload preserves the same list. qa-base renders the identical list, so this is an existing defect left unresolved, not a new regression. Saved template ID/hash and inherit:false remain unchanged across the update. Boxed and Row also retain their old saved content and fail the same catego
      🐞 Existing bug: also fails on the base build. Not reported yet.

      A category archive using an onboarding layout saved before the Raft update lists

    Checks (5 passed)
    • ✅ After choosing an onboarding archive layout, Archive Cards, Archive Boxed and Archive Row category pages list only posts belonging to the current category.
    • ✅ Archive Cards pagination honors the Reading page size and visits only the current category's posts, including next, previous and the final page.
    • ✅ Archive Boxed pagination honors the Reading page size and visits only the current category's posts, including next, previous and the final page.
    • ✅ Archive Row pagination honors the Reading page size and visits only the current category's posts, including next, previous and the final page.
    • ✅ The three onboarding archive layouts restrict tag, author and date archives to their matching posts.

    Full report, evidence and session trail

  6. girishpanchal30 commented on Oct 28, 2026

    @girishpanchal30
    Contributor

    @pirate-bot Layouts imported before the update live in the site's saved archive template, and rewriting that on upgrade could overwrite customisations made after onboarding, so the theme doesn't touch it. Existing sites can fix it by picking the layout again in Appearance → Theme Setup, or by turning on "Inherit query from template" on the Archive template's Query Loop.

  7. pirate-bot commented on Oct 29, 2026

    @pirate-bot
    ContributorAuthor

    🎉 This issue has been resolved in version 1.1.17 🎉

    The release is available on GitHub release

    Your semantic-release bot 📦🚀

  8. added
    releasedIndicate that an issue has been resolved and released in a particular version of the product.
    on Oct 29, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Labels

bugThis label could be used to identify issues that are caused by a defect in the product.bug-reportbug-report-triagereleasedIndicate that an issue has been resolved and released in a particular version of the product.

Type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions