Skip to content

Instantly share code, notes, and snippets.

@mtias
Last active January 19, 2018 16:39
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
Star You must be signed in to star a gist
Save mtias/f0b613f2d5608abdcc6d77218bdf2435 to your computer and use it in GitHub Desktop.
Template
<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