Title: Block does not work
Last modified: November 21, 2018

---

# Block does not work

 *  Resolved [gottfrieds](https://wordpress.org/support/users/gottfrieds/)
 * (@gottfrieds)
 * [7 years, 6 months ago](https://wordpress.org/support/topic/block-does-not-work/)
 * I created a block Kita-Leitung – see [image](http://huppenbroich.de/profinos/wp-content/uploads/2018/11/problem-1.png).
 * This is the related code:
 *     ```
       <div style='background-color: #ebb715; padding: 10px;'>
       <p><strong><?php block_field('name'); ?></strong><br>Einrichtungsleitung</p>
       <p>Katholische Kindertageseinrichtung<br><?php block-field('kita'); ?></p>
       <p><?php block-field('strasse'); ?><br><?php block-field('plz-ort'); ?><p>
       <p>Tel.: <?php block-field('telefon'); ?><br><?php block-field('email'); ?></p>
       </div>
       ```
   
 * This is the input in the [back-end](http://huppenbroich.de/profinos/wp-content/uploads/2018/11/problem-2.png).
 * You see the red line. The blocks was not accepted.
 * Was is wrong with my code???

Viewing 3 replies - 1 through 3 (of 3 total)

 *  Plugin Author [Luke Carbis](https://wordpress.org/support/users/lukecarbis/)
 * (@lukecarbis)
 * [7 years, 5 months ago](https://wordpress.org/support/topic/block-does-not-work/#post-10905747)
 * Hi [@gottfrieds](https://wordpress.org/support/users/gottfrieds/),
 * Thanks for the detailed instructions on how you arrived at the error. I was able
   to reproduce the issue, and figure out what the problem is.
 * In your template code, you’ve called the `block-field()` function a few times.
   The correct function is `block_field()`. Note the underscore in place of the 
   dash.
 * When I fix this on my machine, the post is able to save successfully.
 *     ```
       <div style="background-color: #ebb715; padding: 10px;">
       	<p><strong><?php block_field( 'name' ); ?></strong><br>Einrichtungsleitung</p>
       	<p>Katholische Kindertageseinrichtung<br><?php block_field( 'kita' ); ?></p>
       	<p><?php block_field( 'strasse' ); ?><br><?php block_field( 'plz-ort' ); ?><p>
       	<p>Tel.: <?php block_field( 'telefon' ); ?><br><?php block_field( 'email' ); ?></p>
       </div>
       ```
   
    -  This reply was modified 7 years, 5 months ago by [Luke Carbis](https://wordpress.org/support/users/lukecarbis/).
    -  This reply was modified 7 years, 5 months ago by [Luke Carbis](https://wordpress.org/support/users/lukecarbis/).
 *  Thread Starter [gottfrieds](https://wordpress.org/support/users/gottfrieds/)
 * (@gottfrieds)
 * [7 years, 5 months ago](https://wordpress.org/support/topic/block-does-not-work/#post-10908286)
 * Many thanks, Luke!
 * Your plugin works great. I will definately use it.
 * A question: Do you plan to integrate images? This would be a great advantage.
 * Greeitngs from Germany.
 *  Plugin Author [Luke Carbis](https://wordpress.org/support/users/lukecarbis/)
 * (@lukecarbis)
 * [7 years, 5 months ago](https://wordpress.org/support/topic/block-does-not-work/#post-10920906)
 * Hi Gottfrieds – Yes, that’s definitely on the roadmap.

Viewing 3 replies - 1 through 3 (of 3 total)

The topic ‘Block does not work’ is closed to new replies.

 * ![](https://s.w.org/plugins/geopattern-icon/block-lab_5c34e8.svg)
 * [Block Lab](https://wordpress.org/plugins/block-lab/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/block-lab/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/block-lab/)
 * [Active Topics](https://wordpress.org/support/plugin/block-lab/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/block-lab/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/block-lab/reviews/)

 * 3 replies
 * 2 participants
 * Last reply from: [Luke Carbis](https://wordpress.org/support/users/lukecarbis/)
 * Last activity: [7 years, 5 months ago](https://wordpress.org/support/topic/block-does-not-work/#post-10920906)
 * Status: resolved