{"id":24818677,"url":"https://github.com/vuchkov/latest-posts-block","last_synced_at":"2026-05-11T06:07:00.874Z","repository":{"id":274807600,"uuid":"924128592","full_name":"vuchkov/latest-posts-block","owner":"vuchkov","description":"Custom WordPress plugin registers Gutenberg block for latest posts in REST API \u0026 React","archived":false,"fork":false,"pushed_at":"2025-01-29T13:49:13.000Z","size":0,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-01-29T14:33:55.313Z","etag":null,"topics":["gutenberg-blocks","react","reactjs","rest-api","restapi","wordpress-development","wordpress-plugin"],"latest_commit_sha":null,"homepage":"","language":"PHP","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/vuchkov.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2025-01-29T13:20:22.000Z","updated_at":"2025-01-29T13:53:36.000Z","dependencies_parsed_at":"2025-01-29T14:44:47.325Z","dependency_job_id":null,"html_url":"https://github.com/vuchkov/latest-posts-block","commit_stats":null,"previous_names":["vuchkov/latest-posts-block"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/vuchkov%2Flatest-posts-block","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/vuchkov%2Flatest-posts-block/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/vuchkov%2Flatest-posts-block/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/vuchkov%2Flatest-posts-block/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/vuchkov","download_url":"https://codeload.github.com/vuchkov/latest-posts-block/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":245531174,"owners_count":20630693,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["gutenberg-blocks","react","reactjs","rest-api","restapi","wordpress-development","wordpress-plugin"],"created_at":"2025-01-30T17:37:19.662Z","updated_at":"2026-05-11T06:07:00.795Z","avatar_url":"https://github.com/vuchkov.png","language":"PHP","funding_links":[],"categories":[],"sub_categories":[],"readme":"## WordPress Plugin - Latest Posts Block\n- Uses Gutenberg, Rest API and React JS\n\n### Requirements\n- Wordpress 6+\n- PHP 8.1+\n- NodeJS v22+ (React `npm build`)\n\n### Installation\n- Go to the WordPress plugins folder: `cd wp-content/plugins` \n- Clone the plugin repo`git clone git@github.com:vuchkov/latest-posts-block.git`\n- Go to the plugin folder: `cd latest-posts-block`\n\nInside the plugin folder are the following files:\n- `latest-posts-block.php` (main plugin file)\n- `build/index.js` (ReactJS code for the Gutenberg block)\n- `build/index.asset.php` (generated by WordPress build process)\n- `includes/rest-api.php` (REST API endpoint)\n- `includes/block-registration.php` (block registration logic)\n\n**Build the ReactJS Code**:\n- Go to the plugin folder: `cd wp-content/plugins/latest-posts-block`\n- Install dependencies: `npm init -y \u0026\u0026 npm install @wordpress/scripts --save-dev`\n- Check the `package.json` file about the following content:\n```\n{\n  \"scripts\": {\n    \"build\": \"wp-scripts build\",\n    \"start\": \"wp-scripts start\"\n  },\n  \"devDependencies\": {\n    \"@wordpress/scripts\": \"^24.0.0\"\n  }\n}\n...\n```\n- Run the build process: `npm run build`\n\n### Usage\n\n**Test the Plugin**:\n- Activate the plugin in the WordPress admin dashboard.\n- Add the \"Latest Posts Block\" to a page or post. \n- Configure the number of posts to display using the block settings.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fvuchkov%2Flatest-posts-block","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fvuchkov%2Flatest-posts-block","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fvuchkov%2Flatest-posts-block/lists"}