This plugin adds a custom Gutenberg block named recent posts in the Gutenberg editor of your WordPress dashboard using which you can display recent posts including custom post types.
-
Download the zip file from Github. Unzip the plugin.
-
Navigate to the Plugins > Add new screen in your WordPress dashboard.
-
Click on Add New button at the top of the page.
-
Click on Upload Plugin button at the top of the page.
-
Click Choose File button, then find and Upload the downloaded zip file.
-
After the plugin finishes installing, click Activate.
OR
-
Navigate to the Plugins > Add new in your WordPress dashboard.
-
Open terminal and Clone this repo in wp-content/plugins directory by running following command git clone https://github.com/BRdhanani/gutenberg-recent-posts.git.
OR
-
Go to your plugin directory.
-
Search for recent posts block.
-
Navigate to the Plugins screen in your WordPress dashboard.
-
Activate it.
That's it! You have successfully added gutenberg recent posts plugin.
-
Get recent posts of your favourite custom post type.
-
Manage ordering like ascending or descending.
-
Image size options.
-
Post meta settings like post date, post excerpt etc.
- npm start : will use the src/blocks.js as entry point and output it to build/blocks.js for development
- npm run build : will use the src/blocks.js as entry point and output it to dist/blocks.build.js for production
- Go to WordPress Dashboard > Posts/Pages > Add New > Add block (+ icon) > widgets > Recent Posts
- Select a post type from dropdown to which you wish to add Recent Posts block.
- You can manage ordering, image size, post meta, etc. from the sidebar parameter settings.
- That's it!! publish the page and view the same from the front end.