Similar Posts
How to add unique classes in body tags?
This code is showing how to add a archive-child/archive-parent classes in Woocommerce product category pages using display_type option. add_filter( 'body_class', function( $classes ){ $object = get_queried_object(); if( get_woocommerce_term_meta( $object->term_id, 'display_type', true ) != 'subcategories' ){ $classes[] = 'archive-child'; }else{ $classes[] = 'archive-parent'; } return $classes; });
Gravity Form missing style sheet in wp head ( no Gravity Form CSS found )
If this is happening on your end, try this troubleshooting. Check if your Gravity Form short code if is placed outside the wp_footer();. I guess the short code does not support any function outside the wp_footer();. You should put your Gravity Form short code before wp_footer();. Much better if it is placed on inside the…
How to get current post/page/custom post type post data (ID, Post Name, Post Title, Etc.) in init action?
How to get current post/page/custom post type post data (ID, Post Name, Post Title, Etc.) in init action? If you have something to get in your current page and don’t know how to get the current post ID, post name, post type, post content, and many more, the codes below is the solution. Using init…
WordPress export tools plugins
WordPress Menu Exporter
Get template, Include, Require or Locate another php file
Copy this this on your choosed templates. Locate a file code : locate_template( array( 'function-custom.php' ), true ); Require a file code : require_once( 'functions-custom.php' ); Include a file code : include( 'functions-custom.php' ); Get template functions-woocommerce.php Ex: get_template_part( ‘partials/content’, ‘page’ ); get_template_part( 'functions-woocommerce' );
Override InWave Jobs template to the current theme
Override InWave Jobs template to the current theme is little bit hard for the WordPress beginners so I want to write tutorials that can help them solving this issue. Before that, just a little background for InWave Jobs. InWave Jobs is created by inwavethemes which I beleive many WordPress users is now using this, easy and very powerful plugin….


Many thanks if you are so kind to fairly share this information.