{
  "_comment": "WebsiteDesignOGS — Custom Post Types, Taxonomies & ACF Field Groups",
  "version": "1.0",
  "post_types": [
    {
      "key": "ogs_portfolio",
      "name": "Portfolio",
      "singular": "Project",
      "icon": "dashicons-portfolio",
      "supports": ["title", "editor", "thumbnail", "excerpt", "custom-fields"],
      "has_archive": true,
      "rewrite": { "slug": "portfolio", "with_front": false },
      "taxonomies": ["ogs_project_category", "ogs_service_tag"]
    },
    {
      "key": "ogs_testimonial",
      "name": "Testimonials",
      "singular": "Testimonial",
      "icon": "dashicons-format-quote",
      "supports": ["title", "editor", "thumbnail"],
      "has_archive": false
    },
    {
      "key": "ogs_case_study",
      "name": "Case Studies",
      "singular": "Case Study",
      "icon": "dashicons-analytics",
      "supports": ["title", "editor", "thumbnail", "excerpt"],
      "has_archive": true,
      "rewrite": { "slug": "case-studies" }
    }
  ],
  "taxonomies": [
    {
      "key": "ogs_project_category",
      "name": "Project Categories",
      "post_types": ["ogs_portfolio", "ogs_case_study"],
      "hierarchical": true,
      "rewrite": { "slug": "project-category" }
    },
    {
      "key": "ogs_service_tag",
      "name": "Service Tags",
      "post_types": ["ogs_portfolio", "ogs_case_study"],
      "hierarchical": false
    },
    {
      "key": "ogs_industry",
      "name": "Industries",
      "post_types": ["ogs_portfolio", "ogs_case_study"],
      "hierarchical": true
    }
  ],
  "acf_field_groups": [
    {
      "key": "group_portfolio",
      "title": "Project Details",
      "location": [{ "param": "post_type", "operator": "==", "value": "ogs_portfolio" }],
      "fields": [
        { "key": "client_name", "label": "Client", "type": "text" },
        { "key": "project_services", "label": "Services", "type": "checkbox", "choices": { "design": "Design", "dev": "Development", "seo": "SEO", "geo": "GEO", "aeo": "AEO" } },
        { "key": "project_year", "label": "Year", "type": "text" },
        { "key": "project_url", "label": "Live URL", "type": "url" },
        { "key": "challenge", "label": "Challenge", "type": "textarea" },
        { "key": "solution", "label": "Solution", "type": "textarea" },
        { "key": "results_repeater", "label": "Results", "type": "repeater", "sub_fields": [
          { "key": "result_value", "label": "Value", "type": "text" },
          { "key": "result_label", "label": "Label", "type": "text" }
        ] }
      ]
    },
    {
      "key": "group_testimonial",
      "title": "Testimonial Details",
      "location": [{ "param": "post_type", "operator": "==", "value": "ogs_testimonial" }],
      "fields": [
        { "key": "t_quote", "label": "Quote", "type": "textarea" },
        { "key": "t_name", "label": "Name", "type": "text" },
        { "key": "t_role", "label": "Role", "type": "text" },
        { "key": "t_company", "label": "Company", "type": "text" },
        { "key": "t_rating", "label": "Rating", "type": "number", "default_value": 5 },
        { "key": "t_region", "label": "Region", "type": "text" }
      ]
    }
  ]
}
