Support » Plugin: Block Lab » Block does not work

  • Resolved gottfrieds


    I created a block Kita-Leitung – see image.

    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>

    This is the input in the back-end.

    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


    Hi @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>
    • This reply was modified 5 months ago by  Luke Carbis.
    • This reply was modified 5 months ago by  Luke Carbis.


    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


    Hi Gottfrieds – Yes, that’s definitely on the roadmap.

Viewing 3 replies - 1 through 3 (of 3 total)
  • You must be logged in to reply to this topic.