Install
This is the repository archive. It installs, but the folder name will carry the branch suffix and updates will not flow.
Install straight from GitHub with WP-CLI:
wp plugin install https://github.com/srirupa-m/wp-latest-posts-block/archive/refs/heads/main.zipWP Latest Posts Block : A custom Gutenberg Block that dynamically displays WordPress Posts using server-side rendering and WP_Query. Built using modern Block Development practices.
-
Features : (a) Dynamic Gutenberg Block (b) Server-side Rendering (render.php) (c) WP_Query integration (d) Featured Images (e) Category Badge (f) Author (g) Publish Date (h) Responsive Grid (i) Custom Block Controls (j) Modern Card UI
-
Technologies Used : (a) WordPress (b) Gutenberg Blocks (c) React (d) JSX (e) PHP (f) WP_Query (g) block.json (h) @wordpress/scripts (i) CSS Grid
-
Folder Structure : WP Latest Posts Block/ |--build/ | |---block.json | |---index-rtl.css | |---index.asset.php | |---index.css | |---index.js | |---render.php | |---style-index-rtl.css | |---style-index.css | |--includes/ | |---enqueue.php | |--screenshots/ | |---editor.png | |---frontend.png | |---Hover Effect.mp4 | |---mobile.png | |--src/ | |---block.json | |---edit.css | |---editor.css | |---index.js | |---render.php | |---save.js | |---style.css | |--package-lock.json |--package.json |--uninstall.php |--README.md |--wp-latest-posts-block.php
-
Installation : (i) Copy plugin into wp-content/plugins/ (ii) Run : npm install npm run build (iii) Activate Plugin (iv) Insert "WP Latest Posts" block to any post/page.