Amitpal Singh
Blog

Tutorials and code snippets

Fixes and how-tos for WordPress, WooCommerce, JavaScript, PHP and Cordova, written while building client projects.

JavaScript

How to access values from FormData?

access values from FormData

Excel

How to auto fit in excel? adjust columns and rows to match data size

To auto-fit the column width in Excel, follow these steps: Select the column or columns that you want to adjust the width for. You can do this by clicking…

Excel

How to concatenate two or more cells in Excel?

To concatenate (combine) the contents of two cells into one cell in Excel, you can use the CONCATENATE function or the ampersand (&) operator. Here are…

Excel

How to delete blank rows in excel?

1. Click Find & Select 2. Click to Go to Special 3. Choose Blanks 4. Click OK and then all the blank rows/cells will be highlighted 5. Choose the Delete…

WordPress

Get WordPress post content by post id

Get WordPress post content by post id

Web development

Insert comma separated values on multiple buttons in input type text

Insert comma separated values on multiple buttons in input type text Codepen: <br /> See the Pen <a…

WordPress

Custom Taxonomy in Wordpress (custom post type)

Custom Taxonomy in Wordpress: How to create custom taxonomies in wordpress for custom post type. Example with code and Tutorial.

WooCommerce

Display a custom notice in woocommerce

Display custom notice in woocommerce Quick Solution: WooCommerce is one of the most popular eCommerce plugins for WordPress. It allows you to create a…

WooCommerce

Redirect product - page - role based with IF condition in wordpress through functions.php or a plugin

Redirect product – page – role based with IF condition in wordpress through functions.php or a plugin Quick Solution: In today’s world, creating a website…

WordPress

WordPress: Custom Metabox for custom post type

How to use custom metabox in wordpress for post types?

Cordova

How to remove gray screen before splash screen - Cordova?

How to remove gray screen before splash screen – Cordova? Go to this file location first: Add the below given code to your style.xml file given in: then…

Cordova

Cordova checklist 2023

Cordova checklist 2023: Follow the steps to create mobile app in cordova. Tutorial checklist in Cordova Command-line-interface (CLI) Reference