Files
homeproz/wp-content
Hanson.xyz Dev e5220dcf88 Add agent selection to properties with contact integration
- Changed listing_agent ACF field from user type to post_object (Agent CPT)
- Assigned random agents to all existing properties
- Updated property-agent.php template to:
  - Pull agent data from Agent CPT (photo, phone, email, title)
  - Link agent name to their profile page
  - Show generic contact card when no agent assigned
  - Always show "Request Information" widget linking to contact page
- Added property inquiry flow:
  - Contact links include ?property=PropertyName GET parameter
  - Contact page pre-fills message with property inquiry text
  - JS handles CF7 textarea pre-fill if plugin is active
- Added styles for new property-inquiry-card and generic-contact-card widgets

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude <noreply@anthropic.com>
2025-11-30 18:46:12 -06:00
..