Skip to main content
Best answer

WordPress Updated Post trigger does not work properly with Custom Post Types


Forum|alt.badge.img

I’m using a WordPress trigger with the "Updated Post" action to work with a specific custom post type when a post of that type is published. The custom post type appears in the list, but when I test the trigger, it doesn’t work—I’m only receiving data from the default post type. However, when I use the same custom post type with the "New Post" trigger, it works as expected. Could you help me troubleshoot this issue?

 

Note: I am updating Post Problematically, using wp_update_post hook.

 

Please find video in below link: https://drive.google.com/file/d/18oaa1tAKRWtOLMp5OBJc5gLcuiWqzj7N/view?usp=drive_link

Best answer by niralibiniwale-bacancy

Hi ​@JammerS 

 

Zapier has been incredibly helpful for simplifying workflows, and I’ve used it in various scenarios within my project. However, the Custom Post Type feature wasn’t working as expected. To resolve this, I wrote custom code to handle it instead of using Zapier.

 

Thank you.

View original
Did this topic help you find an answer to your question?

13 replies

Forum|alt.badge.img

Hey @niralibiniwale-bacancy ,

 

Sometime Zapier might receive incorrect test data. This is rare but can happen with webhook based triggers. I will suggest to finish building your Zap, switch it ON and than test it. 


Forum|alt.badge.img

But without correct data I will be unable to finish building Zap. As I want to update the PassKit membership based on data updated in the custom post type.


ken.a
Forum|alt.badge.img+6
  • Zapier Staff
  • 6324 replies
  • November 13, 2024

Hi @niralibiniwale-bacancy.

Before we dig deeper into this, it looks like the Updated Post trigger is loading an older sample data. Could you please try updating one of your post in WordPress and head back to the trigger step and click on the “Find new records” button once more.

Kindly give it a try and let me know how it goes? I'll keep an eye out for your response!


SamB
Community Manager
Forum|alt.badge.img+11
  • Community Manager
  • 7304 replies
  • November 18, 2024

Hey folks! 👋

@niralibiniwale-bacancy - just checking in here to see how you got on with this. Did Ken’s reply help to get things sorted?

Let us know if not and we’ll be happy to assist further! 🙂


Forum|alt.badge.img
ken.a wrote:

Hi @niralibiniwale-bacancy.

Before we dig deeper into this, it looks like the Updated Post trigger is loading an older sample data. Could you please try updating one of your post in WordPress and head back to the trigger step and click on the “Find new records” button once more.

Kindly give it a try and let me know how it goes? I'll keep an eye out for your response!

Hi ​@ken.a I tried multiple times with updating posts using update button & programmatically but it is not working for Custom Post Type. It is only working for Default WordPress Posts type.


SamB
Community Manager
Forum|alt.badge.img+11
  • Community Manager
  • 7304 replies
  • November 22, 2024

Thanks for the update, ​@niralibiniwale-bacancy! Hmm, I wonder if it might be an issue that’s limited to the loading of test record samples. 🤔

If you turn on the Zap and run a quick live test by updating a custom post type and set it to ‘published’ does that then trigger the Zap?

If so, if you then head back over to the Zap can it be loaded in as a new test record? If not, then you could potentially use the workaround in the following guide to select the necessary fields in the actions of your Zap:


And it if the Zap doesn’t trigger, then I’d recommend reaching out to our Support team to flag this as a potential bug. You can do that using the What would you like more help with? form at the bottom of the page here: https://zapier.com/app/get-help (be sure to select the Report a bug or request a feature option form the list).​​​

Keen to ensure this gets sorted so please keep us in the loop on how you get on!


Having the same problem. It’s like Zapier doesn’t see any custom post types when pulling test records. I can’t even map any custom fields because it won’t access any posts of the relevant Type. Any help would be appreciated


Forum|alt.badge.img
SunriseDigital wrote:

Having the same problem. It’s like Zapier doesn’t see any custom post types when pulling test records. I can’t even map any custom fields because it won’t access any posts of the relevant Type. Any help would be appreciated

Eventually I have written custom code for my requirement and skipped Zapier.


JammerS
Forum|alt.badge.img+6
  • Zapier Staff
  • 2207 replies
  • January 20, 2025

Hi ​@niralibiniwale-bacancy,

 

Sorry to hear about the difficulties that led to custom coding, but I'd be happy to help you explore how Zapier could simplify your workflow in the future!


Forum|alt.badge.img

Hi ​@JammerS 

 

Zapier has been incredibly helpful for simplifying workflows, and I’ve used it in various scenarios within my project. However, the Custom Post Type feature wasn’t working as expected. To resolve this, I wrote custom code to handle it instead of using Zapier.

 

Thank you.


SamB
Community Manager
Forum|alt.badge.img+11
  • Community Manager
  • 7304 replies
  • January 23, 2025

Hi everyone! 👋

Thanks for letting us know ​@niralibiniwale-bacancy. I’m so sorry that you ended up having to code your own solution outside of Zapier, but I am really pleased that you were able to get a workaround in place. 🙂

I can see that the Support team have since opened a bug report for this issue so I’ve gone ahead and added both you and ​@SunriseDigital to the list of folks that are affected which helps to increase it’s priority. We can’t provide any sort of timeline for a fix, but you’ll both be notified via email as soon as it’s sorted.

In the meantime, ​@SunriseDigital I’d suggest skipping the test for the trigger, and turning on the Zap so you can then run a live test. Then edit the Zap and manually select the correct fields based on their names in the Zap history. You can find out more details on how to do that here:

If you run into any issues in giving that workaround a try do let me know and I’ll be happy to lend a hand. 


Forum|alt.badge.img

Thank you, ​@SamB , for the update. I hope this issue gets resolved soon so that others can use this feature smoothly in the future.


SamB
Community Manager
Forum|alt.badge.img+11
  • Community Manager
  • 7304 replies
  • January 24, 2025

You’re welcome, ​@niralibiniwale-bacancy! 😊 We’ll do our best to get it resolved as quickly as possible. Really appreciate everyone’s patience in the meantime. 🙏