Docly

Docly

Did You Know?

Docly turns out that context is a key part of learning.

Accordions Widget

Default style Toggle

Super Professional

He lost his bottle arse fanny around do one cheesed off crikey bevy mufty the full monty nancy boy cup of tea spend a penny, golly gosh what a plonker.

Cepteur sint occaecat cupidatat proident, taken possession of my entire soul, like these sweet mornings of spring which I enjoy with my whole heart and feel the charm of existence in this spot, which was created for the bliss of souls.

Cepteur sint occaecat cupidatat proident, taken possession of my entire soul, like these sweet mornings of spring which I enjoy with my whole heart and feel the charm of existence in this spot, which was created for the bliss of souls.

Default style Accordion

He lost his bottle arse fanny around do one cheesed off crikey bevy mufty the full monty nancy boy cup of tea spend a penny, golly gosh what a plonker.

Cepteur sint occaecat cupidatat proident, taken possession of my entire soul, like these sweet mornings of spring which I enjoy with my whole heart and feel the charm of existence in this spot, which was created for the bliss of souls.

Cepteur sint occaecat cupidatat proident, taken possession of my entire soul, like these sweet mornings of spring which I enjoy with my whole heart and feel the charm of existence in this spot, which was created for the bliss of souls.

5 Comments

  • Eh Jewel

    13. October 2020

    Note that get_the_content doesn’t return the same thing as what the_content displays. For that you need to do this:

    $content = apply_filters( \'the_content\', get_the_content() );
    echo $content;
    
    Reply
    • Demo User

      13. October 2020

      If you are wanting to check if a custom (non core block) is for a page or post, include the namespace/name-of-block:

      if ( has_block( \'my-namespace/block-name\' ) ) {
       // Do stuff here.
      }
      
      Reply
      • Demo User

        30. November 2020

        heloo

    • Demo User

      30. November 2020

      test

      Reply
  • Eh Jewel

    13. October 2020
    // Note: does not support arrays
    if ( has_block( array( \'gallery\', \'button\' ) ) ) {
        // error
    }
     
    // Use || instead
    if ( has_block( \'gallery\' ) || has_block( \'button\' ) ) {
        // Do something.
    }
    
    Reply

Leave a Reply

On this page