WordPress Tricks

Add additional tab in woocommerce single product page and show Advanced Custom field info as tab info

Here I am sharing you the code which will help to show an additional / extra tab in woocommerce single product page, and show Advanced Custom fields info in the description of that tab . Just change the field info and put it in your theme’s function.php and save it.

if(! function_exists('new_tab')){


function new_tab($tabs){
"title"=> "Product Review",
 "priority"=> 35,
"callback" =>"tab_desc",
return $tabs;
function tab_desc(){
	global $product;
$id = $product->get_id();
echo  get_field('review',$id); ;


Feel free to do comments if you have any question.

WordPress Tricks

Show 4 Post, One in Left and 3 in right with featured image: In Elementor Builder

Mainly I created the shortcode to show 4 post as per the design above, One in left and Three in right based on the request of one of my client. He wanted to show 4 post in such manner in Elementor page builder plugins. You have to use [recent_posts] in Elementor shortcode module to show it.

The code is divided in 2 part. One for Functions.php and other for Style.css

Code for function.php

Continue reading “Show 4 Post, One in Left and 3 in right with featured image: In Elementor Builder”

WordPress Tricks

Map With Different location pins and mouse activity disabled

This is for advanced users, just shared the code. You can use it in your site by changing the Pin Location name and address. Applicable for wordpress, html and php based sites. Feel free to do comments if you have any question regarding this.

Continue reading “Map With Different location pins and mouse activity disabled”

WordPress Tricks

Create Custom Post type and Category (taxonomy) for your Yoga, Teaching, travel, portfolio ,booking or gym workout based site

Just paste the following Code in your theme’s function.php

In the following Code, I have created Instruction post type with Weeks taxonomy (category) for one of my client. He requested me to show his workout plan based on Week and Day basis. So Just change the Name of Post type and taxonomy and save it.

function instruction_post_type_register(){


'label'=> 'Instructions',
'public' =>true
'labels'=> array(
    'add_new_item'=>'Add New Week',
    'parent_item'=> 'Parent Week'


Feel free to do comments if you need any sort of helps.

My Own

Is your Laptop or computer performing slow? Also MS Word Excel Powerpoint slow to load?

Please read until the end of the post.

In short, here are the issues we generally face in our Laptop or PC

  1. Laptop takes time ( more than a minute ) to boot
  2. Microsoft Word, Excel, Powerpoint,  Adobe Photoshop and other software  takes time too open or load.
  3. Jpeg, png and other pictures don’t open instantly when you double click
  4. Videos and games also take time to start

Continue reading “Is your Laptop or computer performing slow? Also MS Word Excel Powerpoint slow to load?”

WordPress Tricks

TwentySeventeen Theme Sidebar in Static Homepage with Comments Form

The main requirement was, to show sidebar in static homepage in twentyseventeen theme with comments form. Check the screenshot


I have created a template,named Home Sidebar for twentyseventeen theme . I am sharing the template with you

Put this template in your twentyseventeen theme folder and use it to create page with sidebar and comments form.

Continue reading “TwentySeventeen Theme Sidebar in Static Homepage with Comments Form”

Contact Form 7 Issues Tricks and Solution

Promo Code or Coupon Code field in Contact Form 7 or changing value based on specific key typed

Few days ago one of my client requested me to implement a promo code field ( screenshot attached) in payment form (which i helped him created using contact form 7) to show a discounted price. I helped him implemented this and sharing you the code.


  1. Here is the Contact form 7 field to use
[text couponcode placeholder "Promo Code"]

<span class="discountedPrice"> </span>

2. Here is the jQuery code ( Use Simple Custom CSS and JS plugins for this)

     jQuery('input[name="couponcode"]').on('input keyup', function(e){	
	let couponcode= jQuery( 'input[name="couponcode"]' ).val().trim(); 



Feel free to do ask comments in the comments box if you face any issue or contact me in skype om2000_cuet.

Contact Form 7 Issues Tricks and Solution

Click on Paypal button or Redirect to Paypal page after successful submssion or mail sent.

Suppose you have a paypal button to collect money or sale product and you want your client to submit Contact form 7 form too. To make that work easy for your client it is wise to redirect your client to paypal payment collection after successful submission of the form. Here is the procedure

  1. Add this plugins Contact Form 7 Redirection

2. Like the image a new tab “Redirect Settings” will be added

3. Like the Screenshot above you can put the External URL or Paypal url and select “Use External URL”

Instead or redirecting to external url or paypal url if you want to Click Automatically to Paypal Payment button, then use this technique

jQuery(document).ready(function() {

please replace this selector button.paypal-button.large with your payment button selector.

If you face issue or need help please do comments in the comments box.