Skip to content

Challenge 2: Law Firm Backend Schema — CPTs, ACF, Schema.org, Templates - #32

Open
bugsinx12 wants to merge 7 commits into
MeanPug:masterfrom
bugsinx12:feature/challenge-2
Open

Challenge 2: Law Firm Backend Schema — CPTs, ACF, Schema.org, Templates#32
bugsinx12 wants to merge 7 commits into
MeanPug:masterfrom
bugsinx12:feature/challenge-2

Conversation

@bugsinx12

Copy link
Copy Markdown

Summary

Backend implementation for "Pug & Puggle, ESQ" law firm website.

  • Custom Pluginpug-puggle-law-firm with 5 CPTs (practice-area, team, office, local, testimonials) and 1 taxonomy (area-served), all show_in_rest
  • ACF Field Groups — 6 JSON files synced via Local JSON for all content types + global theme settings
  • Schema.org — 8 types: Attorney, LocalBusiness, LegalService, Product, Review, AggregateRating, FAQPage, Question/Answer
  • Geo/Location — Haversine distance search, Google Maps SDK, location-aware AJAX search
  • Modular Architecture — Plugin separated from theme with function_exists delegation, module base class, widget system
  • Template Updates — Archive routes all 5 CPTs with fallback, single.php handles all CPTs

Test Plan

  • Docker compose stack boots without errors
  • Webpack build succeeds on npm run dev
  • Plugin activates and registers all CPTs/taxonomies
  • ACF field groups sync from Local JSON
  • Schema.org output renders on all CPT singles
  • Archive template handles all 5 CPTs with fallback

@bugsinx12

Copy link
Copy Markdown
Author

Tagging @steinbachr for review per challenge instructions.

@bugsinx bugsinx self-assigned this Jun 3, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants