Giter Site home page Giter Site logo

gasatrya / gutenberg-recent-posts Goto Github PK

View Code? Open in Web Editor NEW

This project forked from brdhanani/gutenberg-recent-posts

0.0 0.0 0.0 924 KB

Gutenberg Recent Posts Block for custom post types

Home Page: https://wordpress.org/plugins/recent-posts-block/

PHP 44.14% JavaScript 55.86%

gutenberg-recent-posts's Introduction

Gutenberg Recent Posts

Plugin URL

Recent Posts block

Description

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.

Installation ๐Ÿ”ง

  1. Download the zip file from Github. Unzip the plugin.

  2. Navigate to the Plugins > Add new screen in your WordPress dashboard.

  3. Click on Add New button at the top of the page.

  4. Click on Upload Plugin button at the top of the page.

  5. Click Choose File button, then find and Upload the downloaded zip file.

  6. After the plugin finishes installing, click Activate.

OR

  1. Navigate to the Plugins > Add new in your WordPress dashboard.

  2. 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

  1. Go to your plugin directory.

  2. Search for recent posts block.

  3. Navigate to the Plugins screen in your WordPress dashboard.

  4. Activate it.

That's it! You have successfully added gutenberg recent posts plugin.

Features.

  1. Get recent posts of your favourite custom post type.

  2. Manage ordering like ascending or descending.

  3. Image size options.

  4. Post meta settings like post date, post excerpt etc.

Directory Structure

Screenshot from 2020-03-05 16-36-18

Scripts

  1. npm start : will use the src/blocks.js as entry point and output it to build/blocks.js for development
  2. npm run build : will use the src/blocks.js as entry point and output it to dist/blocks.build.js for production

How to use ?

  1. Go to WordPress Dashboard > Posts/Pages > Add New > Add block (+ icon) > widgets > Recent Posts
  2. Select a post type from dropdown to which you wish to add Recent Posts block.
  3. You can manage ordering, image size, post meta, etc. from the sidebar parameter settings.
  4. That's it!! publish the page and view the same from the front end.

Edit Page โ€น gutenberg-demo โ€” WordPress Edit Page โ€น gutenberg-demo โ€” WordPress (1)

Useful Blogs:

  1. Create Single Page Application With React js and WordPress REST API
  2. How to create custom Gutenberg block as a begginer
  3. Create custom Gutenberg block using ACF

credit

๐Ÿ™Œ Ankita Tanti

gutenberg-recent-posts's People

Contributors

brdhanani avatar dependabot[bot] avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.