57b752f54e
- Manual properties linked to MLS now inherit status (Active/Pending/Closed) and days_on_market from the MLS listing dynamically - Properties not in MLS default to Closed status - Clone feature now auto-populates listing agent by matching MLS ID to Agent CPT - Description formatter detects embedded headers (unpunctuated text after sentences) and splits them into separate paragraphs Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
1.6 KiB
1.6 KiB
Agent Testimonials Feature
Date: 2026-01-06 Type: ACF Field Addition
Summary
Added a new "Testimonials" tab to the Agent Details ACF field group, allowing agents to display client testimonials on their profile pages.
Changes Made
ACF Field Group: Agent Details (group_agent_details)
Added new tab and repeater field:
New Tab: Testimonials (field_agent_tab_testimonials)
- Position: After Social Media tab, before Settings tab
New Repeater Field: agent_testimonials (field_agent_testimonials)
- Type: Repeater
- Layout: Block
- Max rows: 20
Sub-fields:
quote(field_testimonial_quote) - Textarea, required- The testimonial text from the client
client_name(field_testimonial_client_name) - Text, required- Client's name (e.g., "John D." or "John Doe")
context(field_testimonial_context) - Text, optional- Context like "Albert Lea Buyer" or "First-time Homeowner"
Template Changes
Updated single-agent.php to display testimonials section between biography and gallery.
Styling
Added testimonials styles to template-parts/agent/single-agent.scss:
- Two-column grid on desktop, single column on mobile
- Card styling with accent border-left
- Quote icon with italicized text
- Attribution with client name and optional context
How to Add Testimonials
- Go to Agents in WordPress admin
- Edit an agent
- Click the "Testimonials" tab
- Click "Add Testimonial"
- Enter the quote text, client name, and optionally a context
- Save the agent
Dependencies
- Requires ACF Pro (repeater field)
- Theme must be built after deployment (
npm run build)