Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Custom post type support #1222

Open
kelsey-admin-martin opened this issue Feb 18, 2025 · 7 comments
Open

Custom post type support #1222

kelsey-admin-martin opened this issue Feb 18, 2025 · 7 comments

Comments

@kelsey-admin-martin
Copy link

Description of the bug

The automation settings do not pickup our cutom post types, is this something you can or are looking into?

Steps To Reproduce

  1. Click Add Rule
  2. Choose Taxonamy = review-category

Additional Information

No response

@kelsey-admin-martin kelsey-admin-martin added the bug Something isn't working label Feb 18, 2025
@kevinfodness
Copy link
Member

Do you mean custom taxonomies? Or do you mean it's not firing on your custom post types?

@kevinfodness kevinfodness added evaluating and removed bug Something isn't working labels Feb 18, 2025
@kelsey-admin-martin
Copy link
Author

We have a custom post type and custom taxonomy for reviews that are not auto-publishing. I tested the latest plugin update on a development site and then pushed it to a sandbox environment, but the article still shows as "Not Published." Is this an issue with the plugin, or is it related to Apple?

@kevinfodness
Copy link
Member

Did you enable Apple News support for that custom post type? Under Settings, there is a picker that lets you choose which post types the plugin is enabled for. Is your custom post type selected there?

ref: https://github.com/alleyinteractive/apple-news/wiki/configuration#post-type-options

Note that it's a multi-select, so if you want to select multiple types you'll have to hold down ctrl or similar.

If the custom post type is selected in settings and it's still not publishing to Apple News, can you try publishing it manually? You should be able to go to Apple News > Articles and you should see it and should be able to hover over and click the Publish link. Does that succeed or fail? Does it give you an error message?

@kelsey-admin-martin
Copy link
Author

kelsey-admin-martin commented Feb 19, 2025

@kevinfodness

Post Type Options
Choose the post types that are eligible for publishing to Apple News.

Options shown are:-

Posts > Selected
Pages
Media
Reviews > Selected
Spots

Manually publishing fails with this message

There has been an error with the Apple News API: INVALID_DOCUMENT - Invalid Content-Length [30675634] greater than 20000000 for stream [https://kelsey-other-preprod.go-vip.net/thegreatoutdoorsmag/wp-content/uploads/sites/15/2024/03/51370352629_cca8c106e6_o.jpg]

If you need assistance, please reach out for support on WordPress.org or GitHub.

@mogmarsh
Copy link

@kelsey-admin-martin it seems like your document is too big. What do you have set for the "Use Remote Images?" Apple News setting?

@kelsey-admin-martin
Copy link
Author

kelsey-admin-martin commented Feb 19, 2025

Use Remote Images? > Yes

Since changing this to No the article published, what does this change mean for the images?

@mogmarsh
Copy link

the image you were using is 30.7 MB. Apple limits the image size it can pull in to 20 MB.
If you don't use remote images, it will include the image in the API post, which can be slower than if Apple grabs the image from your server. Both methods work, but remote images is the preferred method.

If you can use an image that is smaller than 20 MB, that would probably be the best fix. If not, then turning off Remote Images will probably work, but could cause some slowness in saving/publishing posts.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants