Dynamic Block render.php not moving to build
-
Hello there,
Im trying to develope some wordpress blocks but I cant figure out what is missing with my dynamic block.
Here is what I have done:
1. Started with the command:
npx @wordpress/create-block –variant dynamic block-name –no-plugin2. Edited the render.php file which is created by the command.
3. npm start
From my understanding the block is now getting build. All files are generated into the build folder except the render.php file.
Inside the block.json there is the line:
“render”: “file:./render.php”If I create the file render.php inside the build file its working and the frontend displays the render.php. But shouldnt the file get moved from the script? Also I dont want to make the changes inside the build folder. Something is missing I guess.
Thanks for your help!
The topic ‘Dynamic Block render.php not moving to build’ is closed to new replies.