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

Mapping custom post type slug from source site to remote site #1294

Open
1 task done
vkzawa opened this issue Jan 21, 2025 · 1 comment
Open
1 task done

Mapping custom post type slug from source site to remote site #1294

vkzawa opened this issue Jan 21, 2025 · 1 comment
Labels
type:question Further information is requested.

Comments

@vkzawa
Copy link

vkzawa commented Jan 21, 2025

Describe your question

I have a two separate WordPress websites for organizations within the same parent company. We would like to feature content (like events for example) from the source site on the remote site. I thought it would be useful to use this plugin to push the events to the remote site as they are created or updated however we already have a custom post type with the same slug on the remote site but used for a different purpose. In my head I was just thinking I would just do something like "company-event" on the remote site for the incoming mirrored events but it appears this plugin expects the post type slugs to match on both sites.

Is there maybe a filter I can use to swap the post type slug when Distributor pushes a post? I glanced through the API docs but nothing seemed to stand out to me. I'll keep looking but thought I'd ask here in case someone could give me a quick point in the right direction.

Thanks! This plugins is well thought out, and was very easy to set up, hope I can make it fit my use case.

Code of Conduct

  • I agree to follow this project's Code of Conduct
@vkzawa vkzawa added the type:question Further information is requested. label Jan 21, 2025
@vkzawa vkzawa changed the title Mapping custom post type from source site to remote site Mapping custom post type slug from source site to remote site Jan 21, 2025
@jeffpaul
Copy link
Member

@peterwilsoncc this definitely isn't a usual use case, but if achievable perhaps something to add to our snippets on the dev docs site?

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: Incoming
Development

No branches or pull requests

2 participants