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

After adding new CPT to show_in_rest => true, External Connections need to be refreshed #612

Closed
willopez opened this issue Jul 9, 2020 · 6 comments
Labels
help wanted needs:documentation This requires documentation. type:enhancement New feature or request.
Milestone

Comments

@willopez
Copy link

willopez commented Jul 9, 2020

Describe your question

Hello,
I use a site builder named Oxygen and have two installations of a site, one is a development and the other on is the live version. Both, dev and live are part of a multi-site WordPress installation. I have successfully established connections from live to dev and I am able to pull content to the live site from the dev site. However, Oxygen templates don't appear in the dropdown under the "Pull" screen. Are pulling Oxygen templates not supported for external connections? I do see the option for "Templates" when attempting to pull from another site within the network.

Thanks!

@willopez willopez added the type:question Further information is requested. label Jul 9, 2020
@jeffpaul
Copy link
Member

jeffpaul commented Jul 9, 2020

@willopez if you're using a single multisite install of WordPress, then you do not need to set up External Connections as Distributor works for Posts and Pages across all sites within a multisite without additional configuration. Adding External Connections will require any Custom Post Types to be registered with the argument show_in_rest => true which sounds like may not be happening on your External Connection sites. So if you're working off a single multisite, then remove the External Connections and Distributor should ideally work for all post types.

@jeffpaul jeffpaul self-assigned this Jul 9, 2020
@jeffpaul jeffpaul added type:question Further information is requested. needs:feedback This requires reporter feedback to better understand the request. and removed type:question Further information is requested. labels Jul 9, 2020
@willopez
Copy link
Author

willopez commented Jul 9, 2020

Thanks @jeffpau, in my case I need to add the show_in_rest => true argument to the custom post type.

@willopez willopez closed this as completed Jul 9, 2020
@willopez
Copy link
Author

I spoke too soon, my custom post type does not show up in the dropdown after adding the show_in_rest => true argument. Note, my sites are using an external connection and NOT on a multi-site installation. Seems like this is an actual issue.

@willopez willopez reopened this Jul 10, 2020
@arsendovlatyan
Copy link
Contributor

@willopez We had similar issue too, in our case, after adding the show_in_rest => true argument on both sides, we also had to update connection, so, connection settings will be updated and include the custom post type as distribute available.

@jeffpaul jeffpaul changed the title Pulling Oxygen templates on an external connection not possible? After adding new CPT to show_in_rest => true, External Connections need to be refreshed Jul 10, 2020
@jeffpaul jeffpaul added type:bug Something isn't working. needs:documentation This requires documentation. type:enhancement New feature or request. and removed needs:feedback This requires reporter feedback to better understand the request. type:question Further information is requested. type:bug Something isn't working. labels Jul 10, 2020
@jeffpaul
Copy link
Member

I've updated the title and labels for this issue noting that we should update our docs to note that External Connections need to be refreshed in this scenario.

@jeffpaul jeffpaul added this to the 1.6.1 milestone Jul 10, 2020
@jeffpaul jeffpaul removed their assignment Jul 14, 2020
@jeffpaul jeffpaul modified the milestones: 1.6.1, 1.7.0 Sep 22, 2020
@jeffpaul jeffpaul modified the milestones: 1.7.0, 1.6.1 Nov 10, 2020
@jeffpaul
Copy link
Member

@willopez @arsendovlatyan note that this was added to our README.md in 8554605 and 0a5d6ca as part of the 1.6 release.

@jeffpaul jeffpaul modified the milestones: 1.6.1, 1.6.0 Nov 10, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
help wanted needs:documentation This requires documentation. type:enhancement New feature or request.
Projects
None yet
Development

No branches or pull requests

3 participants