WordPress Create Plugin From Scratch

Today, We want to share with you WordPress Create Plugin From Scratch.In this post we will show you A Complete Guide of Creating WordPress Plugin from Scratch, hear for WordPress Plugin Development from Scratch we will give you demo and example for implement.In this post, we will learn about Create a Custom WordPress Plugin From Scratch with an example.

List of all Google Adsense, VueJS, AngularJS, PHP, Laravel Examples.

Simple Create WordPress Create Plugin From Scratch

There are the Following The simple About Simple WordPress Create Plugin Step By Step Full Information With Example and source code.

As I will cover this Post with live Working example to develop How to Create a WordPress Plugin from Scratch – A Step by Step Guide, so the create wordpress plugin with database for this example is following below.

WordPress Plugin Development – Step by Step Guide

Step 1 : Install Plugin

Path : htdocs/blog_name/wp-content/plugins/create_custom_post/create-custom-plugin.php


Plugin Name: Pakainfo website
Plugin URI:  https://www.pakainfo.com/
Description: Basic WordPress Plugin Custom Inline Post Type
Version:     1.0
Author:      Jaydeep Gondaliya
Author URI:  https://www.pakainfo.com/
License:     pakainfo
License URI: https://www.pakainfo.com/
function custom_inline_post_setup() {
    $params = array(
        'public'    => true,
        'label'     => __( 'Custom Post', 'textdomain' )
    register_post_type( 'custom_post', $params );
add_action( 'init', 'custom_inline_post_setup' );
add_shortcode( 'inline-post-list', 'inline_post_list' );
function inline_post_list( $atts ) {
      'post_type' => 'custom_post', // Post Type Slug
      'posts_per_page' =>-1, // Display All
   'order'=> 'Desc'
     $terms = new WP_Query($params);
    while ($terms->have_posts()) : $terms->the_post();
<div class="single_post">
<div class="span6">
<div class="post_title">
<a href="<?php the_permalink();?>"><?php the_title(); ?></a>
<div class="span6">
<?php  the_content(); ?>
 $myvariable = ob_get_clean();
 return $myvariable;

Step 2 : Create any page – Like Post List

Path : Pages-> Add New -> Page Name : “Post List”

here Put Your shortcode to load the custom posts


Web Programming Tutorials Example with Demo

Read :


You can also read about AngularJS, ASP.NET, VueJs, PHP.

I hope you get an idea about Simple WordPress Create Plugin.
I would like to have feedback on my infinityknow.com blog.
Your valuable feedback, question, or comments about this article are always welcome.
If you enjoyed and liked this post, don’t forget to share.

Related FAQ

Here are some more FAQ related to this Article:

  1.   how to create custom plugin in wordpress from scratch
  2.   Like Dislike system with PHP and MySQL
  3.   Toggle Switches Laravel, Ajax and jQuery example
  4.   Calculate Date Difference using jquery Example
  5.   Simple Create WordPress Plugin Tutorial
  6.   Laravel Framework version Types
  7.   File Upload in Laravel 7 Example Tutorial
  8.   how to create plugin in wordpress with example
  9.   How to Append an Item to Array in PHP
  10.   How to Create a Wordpress Plugin in 10 Minutes Flat

Leave a Reply

Your email address will not be published. Required fields are marked *