-
-
Notifications
You must be signed in to change notification settings - Fork 52
New issue
Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
WordPress Post Type in Fieldmapping Not Creating Correct WordPress Post Type in 2.x #418
Comments
I'm not sure if #414 is also related to this issue or not. |
Maybe it's different though, since you specify that it's when the record type field is different. |
So in your original thread, @timnolte, you were doing this with a filter. Are you saying the filter doesn't work anymore? |
@jonathanstegall so the filter I am using is the |
Okay. Well, I am going to do some work on how option keys get generated to hopefully deal with #414, but I don't know that that will be related to this. I can say that #394 is not happening until there's a bigger interface update, which I'm not sure about. In any case, I don't know of anything that should have changed how this works in 2.0 (or higher) compared to 1.10.x, but I'm still a little surprised that this ever worked. Would appreciate if you are able to track down what the breaking change was, since it is a thing that has worked for you. |
@jonathanstegall OK, so perhaps this happened before 2.x as I didn't even realize there was a 1.10.x version. I. Your tags history there was an older incorrectly tagged 1.18 version, which I think was supposed to be 1.1.8, and since we install plugins via Composer this was constantly causing issues with getting the plugin stuck on an old version. The newest version of the plugin that we've been running was 1.9.9. So all I can confirm is that this issue starts happening after 1.9.9. |
Since 1.10 was very small and 2.0.0 was very large, I think it's very unlikely it was not in 2.0.0, but who knows. Whatever version it was, if you're able to identify what the breaking change was, that would be super helpful. |
Describe the bug
After upgrading to the 2.x version of the plugin I have found that specifically in the case where I have multiple mappings for a Salesforce Object to a WordPress Object, because of multiple Salesforce record Types, that when those records from Salesforce are being processed the resulting WordPress Post Type ends up being set as
post
, when logs and debug processing indicate that it should have created a Custom Post Type (e.g.sf_industry_location
). I verified that reverting back to the 1.9.9 version of the plugin restored the proper WordPress Post Type is created.To Reproduce
Steps to reproduce the behavior:
post
is created and not the Custom Post Type specified in the Fieldmapping.Expected behavior
Post Types in WordPress should be create with the Post Type specified in the Fieldmapping as indicated and not fallback to a generic
post
.Environment (please complete the following information):
Additional context
I'm not sure if this has anything to do with #394
The text was updated successfully, but these errors were encountered: