Skip to content
This repository was archived by the owner on Mar 26, 2021. It is now read-only.

Conversation

@tamw-wnet
Copy link

These commits at a settings toggle to optionally check for the existence of a 'layout' section in the NPR API response, and if present uses that layout to pull in order the corresponding paragraphs, images, externalAssets such as YouTube and Twitter oEmbeds, and HtmlAssets that are usually javascript or iframes. If one of the layout elements is a 'gallery' the primary image for the post is inserted in its place.

Leaving the toggle unchecked, or if no 'layout' section is found in the API response, leaves the previous handler for creating the post body unaltered.

tamw-wnet added 25 commits May 20, 2020 16:43
… SERIOUSLY improve import performance on multi-image posts
…on whether the admin selected to use the layout feature
@tamw-wnet
Copy link
Author

Noting this would close #71 . Also noting that the build failure is due to Travis failing setting up WordPress at all -- see https://travis-ci.com/github/npr/nprapi-wordpress/jobs/368370017

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant