Skip to content
  • Audio Video Downloader
  • YouTube to Audio converter
W3 Programmings

W3 Programmings

Tutorials & Snippets

  • What’s New?
  • Frontend
    • HTML
    • CSS
    • jQuery
    • Bootstrap
    • JavaScript
  • Backend
    • PHP
    • MySQL
  • CMS
    • WordPress
    • WooCommerce
    • DIVI
  • Contact
    • Contact Us
    • Privacy Policy

Tag: PHP

  • Home
  • PHP
HTML JavaScript jQuery MySQL PHP

Date range filters in server side jQuery dataTables using PHP and AJAX

February 6, 2021February 6, 2021 Hamza Mehmood

DataTables is a very popular and useful jQuery library to create powerful tables. In this article we will see how to create date range filters

Read More
Advanced custom fields in WordPress
PHP WooCommerce WordPress

How to use ACF Advanced custom fields plugin in WordPress

January 30, 2021February 6, 2021 Hamza Mehmood

What is advanced custom fields in wordpress? By default WordPress provides 2 options to add data (title and description). If we need more fields we

Read More
detect-submit-button-is-clicked-when-a-form-is-submitted-using-php
HTML PHP

Detect which submit button is clicked when a form is submitted

January 1, 2021February 6, 2021 Hamza Mehmood

Detect which submit button is clicked when a form is submitted using PHP

Read More
how-to-get-next-and-previous-record-in-mysql
MySQL

Get next and previous record in MySQL?

November 29, 2020February 6, 2021 Hamza Mehmood

Lets suppose we want to implement previous/next navigation in our page by using the ID of current article. In this article we will see how to get the previous/next ID of the current ID in the MySQL database.

Read More
how-to-display-the-value-of-custom-fields-in-wordpress-template-page
PHP WooCommerce WordPress

Custom fields in WordPress post or page template

March 4, 2020February 6, 2021 Hamza Mehmood

By default, WordPress provides 2 options to add data (title and description). If we need more fields we need to customize it or use hooks. 

Read More
fetch-blog-posts-api-in-wordpress
PHP WordPress

Fetch blog posts API in WordPress

September 11, 2019January 27, 2021 Hamza Mehmood

Integrate posts dynamically from a WordPress website to another (WordPress or Non-WordPress) website.

Read More
how-to-create-a-shortcode-with-attribute-in-wordpress
WooCommerce WordPress

How to create a shortcode with attribute in WordPress

November 13, 2018January 31, 2021 Hamza Mehmood

Create custom shortcodes with or without attributes and use them in functions.php so that it may be accessible throughout the website

Read More
convert digits and numbers to string in PHP
PHP

How to convert digits and numbers to string in PHP

August 21, 2018January 31, 2021 Hamza Mehmood

We came across in such requirements where we need to display a number into string format, or need to convert a set of number(s) into

Read More
create Add to Cart button in WordPress using shortcode in WordPress
PHP WooCommerce WordPress

How to create Add to Cart button in WordPress using shortcode in WordPress

August 9, 2018January 31, 2021 Hamza Mehmood

For single product: // create add to cart button for single product ID function rec_add_to_cart_button($atts) { $atts_var = shortcode_atts( array( ‘id’ => ”, ‘title’ =>

Read More
create Add multiple products in a cart in a single click in WordPress
PHP WooCommerce WordPress

How to create Add multiple products in a cart in a single click in WordPress

August 9, 2018January 31, 2021 Hamza Mehmood

For multiple products: function woocommerce_maybe_add_multiple_products_to_cart() { if ( ! class_exists( ‘WC_Form_Handler’ ) || empty( $_REQUEST[‘add-to-cart’] ) || false === strpos( $_REQUEST[‘add-to-cart’], ‘,’ ) ) {

Read More

Posts navigation

1 2 3 Next

Search

Recent Posts

  • Date range filters in server side jQuery dataTables using PHP and AJAX
  • Detect any browser using JavaScript
  • How to use ACF Advanced custom fields plugin in WordPress
  • Apply CSRF in the php application to prevent CSRF attacks
  • Detect which submit button is clicked when a form is submitted

Categories

  • .htaccess
  • Bootstrap
  • cPanel
  • CSS
  • DIVI
  • HTML
  • JavaScript
  • jQuery
  • MySQL
  • PHP
  • WooCommerce
  • WordPress

Tags

.htaccess ACF Ajax Arrays Bootstrap Browser cPanel Credit Card CSS DataTables DIVI DIVI Builder DIVI Theme Email Featured Forms HTML https JavaScript jQuery Masking Menu Bar MySQL Payment PHP Plugins Products Scroll SKU SQL SSL WooCommerce WordPress

Archives

  • February 2021
  • January 2021
  • November 2020
  • June 2020
  • March 2020
  • February 2020
  • October 2019
  • September 2019
  • August 2019
  • July 2019
  • January 2019
  • November 2018
  • October 2018
  • September 2018
  • August 2018
  • July 2018
  • May 2018
  • April 2018
  • February 2018
  • November 2017
  • August 2017

Copyright © 2021 w3programmings.com
All rights are reserved.

JOIN OUR NEWSLETTER

And get notified everytime we publish a new blog post