Changeset 3475957
- Timestamp:
- 03/05/2026 09:44:02 PM (2 days ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
shift8-real-estate-listings-for-treb/trunk/readme.txt
r3475951 r3475957 113 113 = Can I import specific listings? = 114 114 115 Yes, use the WP-CLI command: `wp shift8-treb importW12345678,C12345679` to import specific MLS numbers.115 Yes, use the WP-CLI command: `wp shift8-treb sync --mls=W12345678,C12345679` to import specific MLS numbers. 116 116 117 117 = How do I troubleshoot sync issues? = … … 120 120 2. Run a manual sync to generate logs 121 121 3. Check the log viewer for error messages 122 4. Use the API connection tester 122 4. Use the API connection tester: `wp shift8-treb test_api` 123 123 5. Use `wp shift8-treb analyze` for raw API diagnostics 124 6. Use `wp shift8-treb preview` to verify filters without creating posts 124 125 125 126 = Does this work with multisite? = 126 127 127 128 The plugin is designed for single-site installations. Multisite compatibility is not currently supported. 129 130 = What WP-CLI commands are available? = 131 132 The plugin provides a full suite of WP-CLI commands under the `wp shift8-treb` namespace. See the WP-CLI Reference section below for complete documentation of each command with all options and parameters. 128 133 129 134 == Screenshots == … … 133 138 3. Log viewer showing detailed sync progress and debugging information 134 139 4. Quick stats widget displaying sync status and listing counts 140 141 == WP-CLI Reference == 142 143 All commands are registered under `wp shift8-treb`. WP-CLI must be installed on the server. 144 145 = wp shift8-treb sync = 146 147 Run a manual sync of TREB listings from the PropTx RESO Web API. 148 149 Options: 150 151 * `--dry-run` - Run without creating or updating any posts. 152 * `--verbose` - Show detailed output including settings, sample data, and progress. 153 * `--limit=<number>` - Limit the number of listings to process. Overrides admin settings. 154 * `--force` - Force sync even if the bearer token is not configured. 155 * `--listing-age=<days>` - Override listing age in days. Ignores incremental sync and uses age-based filtering. 156 * `--mls=<numbers>` - Import specific MLS number(s), comma-separated. Example: `W12436591,C12380184` 157 * `--members-only` - Sync only listings from configured member IDs. Applies filter at API level. 158 * `--postal-prefix=<prefixes>` - Override geographic filter with postal code prefixes (FSA). Comma-separated. Example: `M5V,M6H`. Mutually exclusive with `--city`. 159 * `--city=<cities>` - Override geographic filter with city names. Comma-separated. Example: `"Toronto W08,Mississauga"`. Mutually exclusive with `--postal-prefix`. 160 * `--skip-images` - Skip image downloads for faster sync. Stores external URLs only. 161 * `--sequential-images` - Use sequential image processing instead of batch. Slower but more compatible. 162 163 Examples: 164 165 wp shift8-treb sync 166 wp shift8-treb sync --dry-run --verbose 167 wp shift8-treb sync --listing-age=7 --limit=50 168 wp shift8-treb sync --mls=W12436591,C12380184 169 wp shift8-treb sync --members-only --skip-images 170 wp shift8-treb sync --postal-prefix=M5V,M6H 171 wp shift8-treb sync --city="Brampton,Oakville" --limit=20 172 173 = wp shift8-treb preview = 174 175 Query the API and display a summary of matching listings without creating any posts. Output includes price range and median, city breakdown, property type breakdown, and top agents. 176 177 Options: 178 179 * `--limit=<number>` - Limit number of listings to fetch. 180 * `--listing-age=<days>` - Override listing age in days. 181 * `--members-only` - Only show listings from configured member IDs. 182 * `--postal-prefix=<prefixes>` - Override geographic filter with postal code prefixes. Mutually exclusive with `--city`. 183 * `--city=<cities>` - Override geographic filter with city names. Mutually exclusive with `--postal-prefix`. 184 * `--format=<format>` - Output format: `table` (default) or `json`. 185 186 Examples: 187 188 wp shift8-treb preview 189 wp shift8-treb preview --postal-prefix=M5V,M6H,M8X 190 wp shift8-treb preview --city="Toronto W08,Mississauga" 191 wp shift8-treb preview --limit=20 --members-only 192 wp shift8-treb preview --format=json 193 194 = wp shift8-treb analyze = 195 196 Fetch raw API data for diagnostic analysis. Supports searching for specific MLS numbers and showing agent breakdowns. No posts are created. 197 198 Options: 199 200 * `--limit=<number>` - Maximum listings to analyze. Default: 50. 201 * `--search=<mls>` - Search for specific MLS number(s). Comma-separated. 202 * `--show-agents` - Show unique agent IDs and their listing counts. 203 * `--days=<number>` - Number of days to look back. Default: 90. 204 * `--members-only` - Only analyze listings from configured member IDs. 205 * `--postal-prefix=<prefixes>` - Override geographic filter. Mutually exclusive with `--city`. 206 * `--city=<cities>` - Override geographic filter. Mutually exclusive with `--postal-prefix`. 207 208 Examples: 209 210 wp shift8-treb analyze --limit=100 --show-agents 211 wp shift8-treb analyze --search=W12436591,C12380184 212 wp shift8-treb analyze --days=30 --limit=200 213 wp shift8-treb analyze --city="Mississauga" --days=30 214 215 = wp shift8-treb settings = 216 217 Display current plugin configuration. Sensitive values such as the bearer token are masked. 218 219 Options: 220 221 * `--format=<format>` - Output format: `table` (default), `json`, or `yaml`. 222 223 Examples: 224 225 wp shift8-treb settings 226 wp shift8-treb settings --format=json 227 228 = wp shift8-treb test_api = 229 230 Test the PropTx RESO Web API connection using the configured bearer token. 231 232 No options. Example: 233 234 wp shift8-treb test_api 235 236 = wp shift8-treb test_media <listing_key> = 237 238 Test the Media API for a specific listing. Shows available photos with URLs, types, order, and preferred photo status. 239 240 Arguments: 241 242 * `<listing_key>` - The MLS listing key. Example: `W12438713` 243 244 Options: 245 246 * `--raw` - Show the full raw JSON API response. 247 248 Examples: 249 250 wp shift8-treb test_media W12438713 251 wp shift8-treb test_media W12438713 --raw 252 253 = wp shift8-treb sync_status = 254 255 Show current sync mode (incremental or age-based), last sync timestamp, and relevant settings. 256 257 No options. Example: 258 259 wp shift8-treb sync_status 260 261 = wp shift8-treb reset_sync = 262 263 Reset the incremental sync timestamp. Forces next sync to use age-based filtering, re-importing listings that may have been deleted locally. 264 265 Options: 266 267 * `--yes` - Skip the confirmation prompt. 268 269 Examples: 270 271 wp shift8-treb reset_sync 272 wp shift8-treb reset_sync --yes 273 274 = wp shift8-treb clear_logs = 275 276 Clear all plugin sync logs. 277 278 Options: 279 280 * `--yes` - Skip the confirmation prompt. 281 282 Examples: 283 284 wp shift8-treb clear_logs 285 wp shift8-treb clear_logs --yes 286 287 = wp shift8-treb retry-images = 288 289 Retry downloading failed images for posts that have stored external image references. Draft posts are auto-published if the retry succeeds. 290 291 Options: 292 293 * `--limit=<number>` - Limit number of posts to process. Default: unlimited. 294 * `--dry-run` - Show what would be processed without downloading. 295 * `--status=<status>` - Only process posts with a specific status: `draft`, `publish`, or `any` (default). 296 297 Examples: 298 299 wp shift8-treb retry-images 300 wp shift8-treb retry-images --dry-run 301 wp shift8-treb retry-images --status=draft 302 wp shift8-treb retry-images --limit=10 135 303 136 304 == Changelog ==
Note: See TracChangeset
for help on using the changeset viewer.