herb miller

WordPress plugin specialist

  • Home
  • About
    • Online CV
    • Contact
    • Find me
  • Shop
    • Seriously Bonkers โ€“ softback book
    • Seriously Bonkers โ€“ signed book
    • Seriously Bonkers โ€“ PDF
  • Dev env
    • Local development
    • WordPress plugins
    • Server environments
    • Development hardware
    • WAMP configuration
    • Tools and languages
    • What’s not in my development environment?
    • Anything else in your development toolkit?
  • Sites
My Favourite Block – annotated ยป Page 28

My Favourite Block – annotated

Post Scriptum

Some additional verses


Custom Post Type Templates

Here’s another entry
It came in rather late
My favourite’s not a block at all
but a CPT template.

https://wordpress.org/gutenberg/handbook/designers-developers/developers/block-api/block-templates/
function oik_block_CPT_template() {
        $template = array();
        $template[] = ['oik-block/blockinfo', [ 'className' => 'svg64' ] ];
        $template[] = ['core/paragraph', ['backgroundColor' => 'very-light-gray'] ];
        $template[] = ['core/more' ];
        $template[] = ['core/heading', [ 'content' => "Screenshot" ] ];
        $template[] = ['oik-block/fields', [ 'fields' => 'featured'] ];
        $template[] = ['core/heading', [ 'content' => 'Example'] ];
        $template[] = ['core/paragraph', ['placeholder' => 'Type / to choose the sample block' ]];
        $template[] = ['core/spacer'];
        $template[] = ['core/separator'];
        $template[] = ['core/heading', [ 'content' => 'Notes'] ];
        $template[] = ['core/list'];
        return $template;

Pages: 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29

Categories: Gutenberg, Poems, WordPressTags: blocks

Published: May 15, 2019 | Last updated: July 23, 2019

Tide times from tidetimes.co.uk

Tide Times & Heights for Northney on Wednesday, 20 January 2021
High Tide: 04:31 ( 4.10m )
Low Tide: 09:34 ( 1.60m )
High Tide: 16:45 ( 3.90m )
Low Tide: 22:01 ( 1.50m )

Tide times from tidetimes.org.uk

Tide Times & Heights for Northney on 20th January 2021
04:31 - High Tide ( 4.15m )
09:34 - Low Tide ( 1.60m )
16:45 - High Tide ( 3.86m )
22:01 - Low Tide ( 1.55m )

Follow me

  • Home
  • About
  • Blog
  • Contact
  • Find me
  • Privacy notice
  • Sitemap

Site:  herbmiller.me
© Copyright herb miller 2012-2021. All rights reserved.


Website designed and developed by Herb Miller of Bobbing Wide
Proudly powered by WordPress