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

Could not determine remote post type endpoint. Error with custom post type #1304

Open
1 task done
sflwa opened this issue Mar 11, 2025 · 2 comments
Open
1 task done
Assignees
Labels
type:question Further information is requested.

Comments

@sflwa
Copy link

sflwa commented Mar 11, 2025

Describe your question

I'm trying to push content between 2 sites - I have the plugin installed on both sites and both sites configured as external to each other.

I trying to push from the the primary site and get Could not determine remote post type endpoint.

I'm not sure where to start trying to debug this.

I should note this is a custom post type with ACF

Code of Conduct

  • I agree to follow this project's Code of Conduct
@sflwa sflwa added the type:question Further information is requested. label Mar 11, 2025
@jeffpaul
Copy link
Member

@sflwa did you utilize the wizard flow when creating those external connections? Have you checked these notes on cpt support?

@jeffpaul jeffpaul self-assigned this Mar 11, 2025
@vikrampm1 vikrampm1 moved this from Incoming to In Progress in Open Source Practice Mar 11, 2025
@sflwa
Copy link
Author

sflwa commented Mar 11, 2025

@jeffpaul - 1) Yes I did use the wizard and posts work fine
2) I saw the not about the show_in_rest - The custom post type is from a plugin - Is there a snippet I can add to declare that without affecting the plugin - I can check with the plugin author as well

====EDIT====
I was able to add
'show_in_rest' => true,
to the custom plugin in and it did at least copy, however the ACF fields within the plugin - specifically some image fields

I see I need to use dt_push_post hook - can you provide a sample snippet and I should be able to reproduce it

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
type:question Further information is requested.
Projects
Status: In Progress
Development

No branches or pull requests

2 participants