Files
homeproz/db_content_updates/2026-01-06_agent-testimonials.md
T
root 57b752f54e Manual property enhancements: MLS status sync, agent clone, description formatting
- 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>
2026-01-23 21:28:44 +00:00

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:

  1. quote (field_testimonial_quote) - Textarea, required
    • The testimonial text from the client
  2. client_name (field_testimonial_client_name) - Text, required
    • Client's name (e.g., "John D." or "John Doe")
  3. 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

  1. Go to Agents in WordPress admin
  2. Edit an agent
  3. Click the "Testimonials" tab
  4. Click "Add Testimonial"
  5. Enter the quote text, client name, and optionally a context
  6. Save the agent

Dependencies

  • Requires ACF Pro (repeater field)
  • Theme must be built after deployment (npm run build)