Last active
January 19, 2018 16:39
-
-
Save mtias/f0b613f2d5608abdcc6d77218bdf2435 to your computer and use it in GitHub Desktop.
Template
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<body> | |
<?php | |
do_blocks( array( | |
// Theme header | |
array( 'theme/header' ), | |
array( 'core/image' ), | |
array( 'core/heading', array( | |
'placeholder' => 'Add Author...', | |
'className' => 'my-custom-class', | |
) ), | |
array( 'core/paragraph', array( | |
'placeholder' => 'Add Description...', | |
) ), | |
// The page title | |
array( 'core/post-title', array( 'id' => get_post_id() ) ), | |
// A post block: renders the_content | |
array( 'core/post', array( 'id' => get_post_id() ) ), | |
// The footer | |
array( 'theme/footer' ), | |
) ); | |
?> | |
</body> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment