DEV Community

Discussion on: WP Snippet #012 Add custom (ACF) fields to the WP Rest Api.

Collapse
 
tylerlwsmith profile image
Tyler Smith

I do, actually! It's not my favorite though: if you use ACF, it's usually doing some magic and formatting under the hood. I also use long prefixes.

I did one site where I where I managed to pull Blade templates out of Laravel, put an object wrapper around the WP_Query class and have it return custom extendable objects that wrapped the WP_Post class. It felt a little like Laravel.

It ended up being a nice experience, but I only used it once because I stopped doing much WordPress development around that time. I should really make that a starter theme and open source it...

Thread Thread
 
vanaf1979 profile image
Stephan Nijman

That sounds nice. I would love to have a look at that! :)