• Resolved dev325

    (@dev325)


    I created my simple theme. Everything works. But not work lazy blocks. In front lazyblocks not visible and in comments i see this
    <!-- wp:lazyblock/section-rev {"blockId":"ZF3VIN","blockUniqueClass":"lazyblock-section-rev-ZF3VIN"} /-->
    What am I doing wrong?

    The content shows that:

    <?php
    		if ( have_posts() ){
    			while ( have_posts() ){
    				the_post();
    	
    
    				echo get_the_content();
    			}
    		}
    		
    		else{
    			echo ' <p>Записей нет...</p>';
    		}
    		?>
Viewing 1 replies (of 1 total)
  • Thread Starter dev325

    (@dev325)

    My fall.
    The problem was echo get_the_content();

    Changed to echo apply_filters( 'the_content', get_the_content() ); and blocks work.

    • This reply was modified 5 years, 5 months ago by dev325.
Viewing 1 replies (of 1 total)
  • The topic ‘No lazyblock is displayed in front. But shown in comments.’ is closed to new replies.