In this video I am showing how to build a short-code that contains a loop of custom post types selection and order of which is controlled via ACF post object multi-select field in order to provide a drag and drop interface for editors/clients to curate their loops manually.
The technique is relying on GeneratePress Premium Elements feature, GenerateBlocks plugin, and ACF plugin. Code is inspired by Addison Hall example. The video is a continuation on the previous video where I used Core query block to do something similar, in a simpler but less powerful way.
The code from the video
[ Ссылка ]
ACF post object docs
[ Ссылка ]
Previous Video
[ Ссылка ]
The Addison Hall video and code
[ Ссылка ]
[ Ссылка ]
* In the video I have mistakenly repeated wp_reset_data() twice. Code on my gist does not have this mistake.
#GeneratePress
#GenerateBlocks
#ACF
#WordPress
#Gutenberg
Ещё видео!