wp-net / WordPressPCL

This is a portable library for consuimg the WordPress REST-API in (almost) any C# application
MIT License
342 stars 130 forks source link

Add repeater custom filed #142

Open mohammad983 opened 6 years ago

mohammad983 commented 6 years ago

In ACF-Pro (advanced custom field pro) plugin, there is a repeater filed. The repeater field posts its data as a multi-dimensional array where each row of data is defined as an array of subfield values. The subfield values use the sub field's key or name as the array key. I used WordPressSharp to send the data to the repeater filed. but It seems the library does not support multi-dimensional in custom fields function. Is it support in WordPressPCL?

ThomasPe commented 6 years ago

this is not supported directly but you can try to use the CustomRequest API to pass your own custom DTO object for deserialization: https://github.com/wp-net/WordPressPCL/wiki/CustomRequests

mohammad983 commented 5 years ago

this is not supported directly but you can try to use the CustomRequest API to pass your own custom DTO object for deserialization: https://github.com/wp-net/WordPressPCL/wiki/CustomRequests

The example is about ContactForm. Could you please add an example for ACF?

adelhoss commented 4 years ago

Hello Every One Please Provide Example For Advanced Custom Fields PRO