Forum Replies Created
-
AuthorPosts
-
Robin
ParticipantThank you for your assistance, that has resolved my issue.
Robin
ParticipantI have made progress with the issue.
If I modify the original tribe_venue post type within the Events Calendar plugin src. I am able to get the data via the WP API. I will assume this is because the code is not overwritten in the same manner as the modification I make within my own plugin.
If you do wish to support the WP API as stated, may I suggest that you add this code to each post type. It just means that any user in the future will instantly be able to access the data via the API.
Unfortunately, the fix that I have implemented is only temporary as it will be overwritten as soon as the plugin is updated. Do you have any recommendations as to how to prevent the Events Calendar Pro plugin overwriting the change in my own plugin?
I look forward to your response.
Robin
ParticipantHello Hunter, thank you for your response.
Unfortunately, I reverted to the twentyfourteen theme and the issue still persisted. It does appear that the issue is coming from the Events Calendar Pro plugin. Does the pro plugin redefine any of the post types? It may be that my custom code that sets the post type to show in rest is being overwritten.
Robin
ParticipantHello there, thank you for your reply. I went ahead and started deactivating the other plugins. Kind of annoyed I didn’t think to do so in the first place.
In doing so, I have managed to isolate the issue. It is the Events Calendar Pro plugin that is causing the problem. With it deactivated, my call to get the tribe_venue posts is successful. However If i re-enable it. It says the post type no longer exists.
Is it that the tribe_venue post type has been updated to something else in the Events Calendar Pro plugin?
I look forward to your response.
-
AuthorPosts
