Category: Blog

WooCommerce important page url

Below there is some needed woo-commerce page URL, which is frequently used to develop any woo-commerce website. The WooCommercer important page URL are   Shop Url $shopUrl = get_permalink( woocommerce_get_page_id( ‘shop’ ) ); Cart Url global $woocommerce; $aUrl = $woocommerce->cart->get_cart_url();   Checkout Url global $woocommerce; $aUrl = $woocommerce->cart->get_checkout_url();   Account Url $aAccountPageId = get_option( ‘woocommerce_myaccount_page_id’ […]

Read More

Bootstrap form validation using javascript

Hi, in the post ‘ Bootstrap form validation using javascript ‘ we are going to learn how to make a validated form on the bootstrap framework using javascript only without any validator js plugin. To make the form and validate the form using the below code. here we are going to use only 3 fields […]

Read More

How to make load more gallery without reloading page using javascript.

Hi, today we are going to discuss making a load more gallery without reloading the page using javascript. now lets start step by step, Step 1. first needed a gallery of image or text and need to give a unique class name to the thumbnail divs. Step 2. then make the div display none to […]

Read More

JavaScript Form Validation with email , phone number and name.

Hi, today we are going to see how to make a form validation using javascript, it includes email validation, name validation, max-min value validation, string length validation and also phone number validation. We are going to use the set custom message as the required field use to show and for that we will use javascript […]

Read More

How to make pagination using javascript

Hi, In this post we are going to discuss how to make a javascript pagination of a table and an unordered list (ul li). For that, we have to include 2 javascript libraries. <script src=”https://ajax.googleapis.com/ajax/libs/jquery/2.0.3/jquery.min.js”></script> <script type=”text/javascript” src=”https://cdn.rawgit.com/ddenhartog/jquery-simple-pagination/master/jquery-simple-pagination-plugin.js”></script> the ul or table we want to make pageable, have to keep inside a div with an […]

Read More

WoordPress WooCommerce get logout url

In this post, we ate going to learn about woo-commerce get logout URL and let’s make that step by step First: get the my account page id by using the code get_option( ‘woocommerce_myaccount_page_id’ ); Second: check if there is any my-account page id Third: get the permalink bypassing my account page id through the function […]

Read More

WordPress WooCommerce get my-account page url

In this post we are going to learn to get myaccount page url of woocommerce , now start step by step First: get the my account page id by using the code get_option( ‘woocommerce_myaccount_page_id’ ); Second: check if there is any myaccount page id Third: get the parmalink by passing the myaccount page id through […]

Read More

How to get featured image url of a post or pages

In this post, we are going to learn about WordPress get featured image URL now start step by step First, get the id of the post or page of which featured image URL you want to get by using the code $post->ID Second get the id of the thumbnail image bypassing the post id through […]

Read More

How to get wordpress page url or link by page or post name

to get the URL of a page by its name in WordPress first you need to get the id of the page by page name and then you have to get the page URL by id Now to get the id of the page by page name use the below code $page = get_page_by_title( ‘Hellow […]

Read More

How to get WordPress page url by id

to get the URL of any post or page in WordPress first you need to get the id of that page or post, and for that go to admin panel and open the post or page for edit and on URL you will find ?post=<post id> and get the post or page id from there. […]

Read More