Manhattin Website Integration

What's Included

This folder contains everything needed to integrate Manhattin with client websites:

1. WordPress Plugin (manhattin-integration.zip)

Ready-to-install WordPress plugin with shortcodes for unit listings and contact forms

2. Documentation

WordPress-specific (this folder): General API docs (docs/api/):

Latest Updates

v1.0.1 - Fixed API Response Structure Issues Fixed:

Installation

  1. Download the manhattin-integration.zip file
  2. Upload to WordPress:
- Go to WordPress Admin → Plugins → Add New

- Click "Upload Plugin"

- Choose manhattin-integration.zip

- Click "Install Now"

  1. Activate the plugin
  2. Configure:
- Go to Settings → Manhattin Settings

- Enter your API URL: https://manhattin.com

- Enter your API Key: pk_live_0123456789abcdef... (your full API key)

- Save settings

Usage

Display All Available Units

Add this shortcode to any page:

[manhattin_availability]

With Filters

[manhattin_availability bedrooms="2" max_rent="2500"]

Hide Filters

[manhattin_availability show_filters="no"]

Display Single Unit

[manhattin_unit id="unit-id-here"]

What It Does

The plugin will:

Updating Existing Installation

If you already have the plugin installed and configured:

  1. Deactivate the old plugin (Settings will be preserved)
  2. Delete the old plugin files
  3. Upload and install the new manhattin-integration.zip
  4. Activate the new version
  5. Clear cache: Delete transient cache from WordPress Admin → Tools → Site Health → Clear Caches (if you have a cache plugin)

OR manually clear Manhattin cache:

php
delete_transient('manhattin_units_' . md5('{}'));

API Endpoints Used

Testing

After installation:

  1. Add shortcode to a test page: [manhattin_availability]
  2. View the page on your site
  3. Check browser console (F12) for any errors
  4. You should see all available units displayed

Troubleshooting

No units showing?

  1. Check Settings → Manhattin Settings - API key and URL are correct
  2. Enable WordPress Debug: Add to wp-config.php:
php
   define('WP_DEBUG', true);

define('WP_DEBUG_LOG', true);

  1. Check wp-content/debug.log for API errors
  2. Verify API is accessible: Test in browser: https://manhattin.com/api/public/availability

"Unable to load availability" error?

Wrong data showing?


Two Integration Options

Option 1: WordPress Plugin (Easiest)

Option 2: Direct API Integration (Full Control)

For clients: See CLIENT_OPTIONS.md to compare both options

Documentation Index

FileLocationPurposeAudience
README.mdwordpress-plugin/Overview and plugin installationEveryone
WORDPRESS_GUIDE.mdwordpress-plugin/Contact form setup and integrationsWordPress users
API_REFERENCE.mdapi/Complete API reference with examplesDevelopers
QUICK_START.mdapi/Fast 5-minute integrationDevelopers
TESTING.mdapi/Testing procedures and checklistInternal / QA
ORG_API_GUIDE.mdapi/Multi-property organization APIDevelopers
CLIENT_OPTIONS.mdapi/Comparison guideClients / Decision makers

Support

For WordPress Plugin Issues: For Direct API Integration: General Support: