11ty / 11ty/import

Import from Hosted WordPress when it is using a Custom Domain

Open
#16 1 comment 1 reaction 0 assignees View on GitHub

Nobody has claimed this yet.

bug enhancement
Dominant language
JavaScript
Stars
125
Forks
5
PR merge metrics
No merged PRs in 30d

Description

Right now the Hosted WordPress import type runs only on .wordpress.com domains.

See this: https://github.com/11ty/eleventy-import/blob/c5070aeedc1e9acabc152fc550f5ee59bb940016/src/DataSource/HostedWordPressApi.js#L15-L18

We need to change this logic to support other domains OR add an explicit wordpress-hosted type here: https://github.com/11ty/eleventy-import/blob/c5070aeedc1e9acabc152fc550f5ee59bb940016/src/Importer.js#L169 that points directly to the HostedWordPressApi class.

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Read src/DataSource/HostedWordPressApi.js around lines 15–18 to understand the current .wordpress.com check, then inspect src/Importer.js around line 169 to compare the proposed dispatch options. Done means Hosted WordPress imports work for custom domains, either through updated domain logic or an explicit wordpress-hosted type.

Written by the indexing model from the issue text.

Assessment

Tech stack
javascript
Domain
cli
Issue type
Feature
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.