Block theme CPT template best pratices to be flexible
-
Hi,
I wonder what is the best pratice when building my Custom post type Template (Block theme), to make it flexible and easy to change in the future.
For example : If each Post has 4 different sections (or Groups).
A : paragraph block
B : gallery block
C : paragraph block + image block
D : video block
I want to be able to change the order of the sections, like BDAC, or like placing ABC sections in a left-column and D section in a right-column… without having to modify hundreds of Posts contents one by one.
How to do that?
– Using ACF fields for each section ?
– Using any hook to filter the post content and re-order the blocks (does it exist?)
– Using CSS : put all sections in a Flex box and change the flexbox items order ?
– …
Thank you
- The topic ‘Block theme CPT template best pratices to be flexible’ is closed to new replies.