Archived topic
ACF + Custom page + Elements + Shortcode
3 replies · Started by Sergio on February 19, 2021
Hello
More than a doubt it is an intention to confirm if what I have done would be correct:
I have created a custom post type with custom fields and displayed them via ELEMENTS and HOOKS in the SINGLE PAGE.
Obviously to make it look nice I have to use a lot of CSS and HTML.
I thought of some way to use Gutenberg block ELEMENT + shortcodes. To do this I installed the "Insert PHP Code Snippet" plugin and collected the data from the custom fields with PHP in a shortcode.
Then I create my LAYOUT with the "block" ELEMENT and insert the shortcodes where I am interested. This saves me developing the layout in HTML + CSS.
I don't know if I have explained myself well.
Is this way of working correct?
Thanks in advance.
Hi there,
it is a valid method.... but you may want to wait to play with GPP 2.0 alpha being released next week... it adds Dynamic content to the Block Element :)
Heres a demo of it building post archives but the principles are the same for Hooked content:
OMG David!!! That are great news!!!!!!
Thank you !!
You're welcome!