Get author name of blog posted in WordPress

How to each blog post Author name in Blog anywhere using PHP in WordPress <?php $author_id = $post->post_author; echo get_the_author_meta(‘display_name’, $author_id); ?>  

Video : PHPMailer Install with Composer and Solve SMTP Error not authenticate using Gmail PHP Mailer

PHPMailer Install with Composer and solve SMTP error: Could not authenticate PHP developer setup PHPMailer for sending mail by PHP code. PHP mail() function also supports directly sending mail but some time Server or Localhost required an SMTP port setting so the developer is required to install or unpackage PHPMailer.   Watch Youtube Video Tutorial […]

Create a Unique ID by JavaScript Function and Store into Variable

  Create Unique ID by JavaScript   There are different way to generate Unique ID or unique identifier number in JS. Its very useful and use in may cases rendering list or identify recordsd in database. <script type=”text/javascript”> function createUniqueId(){       const head = Date.now().toString(36);         const tail = Math.random().toString(36).substr(2); […]

With PHP MySQL Query retrieve fetch all WordPress Blog categories in JSON REST API

PHP MySQL database query for fetching categories data in JSON Format.   I run my WordPress website with MySQL database so need to fetch the database categories post data in JSON format and use it on another website created with REST API. In the below code, I will provide MySQL queries that can run on […]

MySql query for fetch/ retrieve category data in WordPress with image thumbnail

MySql query for fetch WP post_id, post_title, post_date & name with using thumbnail for a particular WordPress category. WordPress also provides some methods for retrieving post data with thumbnails but you can also fetch them with MySQL query. Also, do with same with MySql join in array format. If you are required to display WordPress […]

Create, Import and Export Database in MySQL or MariaDB by Putty

How to import, export, and create a database in MySQL or MariaDB Create a new database in MySQL or MariaDB First login to MySQL shell or MariaDB in putty using the below command. mysql -u root -p Create new database mysql> create database new_website; Check your database create or not use mysql> show databases; List […]

Get full current page URL in PHP

Echo current page URL in a PHP page. to echo or get the current page URL in a PHP page, use $_SERVER. Its build-in variable in PHP, which is used to fetch or echo the current page URL. It’s available for all scope and its super global variable. Below examples show how it works and […]

Develop PHP Webhook for Google Lead Form Extension

How to set up PHP webhook code for forwards google lead extension form. create a webhook in PHP, save this file in the root folder with adwords_webhook.php for connecting your server to Google Ads, and help to get leads data into CRM or mailing address. Below code for Google Ads Lead form extension. <?php $dataStr […]

Create Rest API with JSON output form MySQL Database Tables Data in PHP

Developed Simple Rest API data in array convert into JSON fetch from MySQL Database Tables. Below is code for creating JSON Array API data fetch from MySQL database. I use this simple API to get all records entered in a database table. I developed this on localhost requires database configuration changes in the top 4 […]

Libmergepdf PHP Code for merge or concatenate multiple pdf files into single pdf

PHP composer library / SDK for merging or Concatenate multiples PDf(.pdf) files.   Install libmerge pdf sdk by Packagist composer. Open your folder with CMD for installation of the composer package and run below command. Installation composer require iio/libmergepdf Library for merging multiple PDFs https://packagist.org/packages/iio/libmergepdf   Add bulk .pdf files using PHP array. <?php require […]