Similar Posts
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…
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…
Add div wrapper below the widget title
Re-register the default genesis sidebar into your function.php. See the image above for html output. genesis_register_sidebar( array( 'id' => 'sidebar', 'name' => __( 'Primary Sidebar', 'genesis' ), 'before' => '<div id="%1$s" class="widget %2$s">', 'after' => '</div></div>', 'before_title' => '<h4 class="widget-title widgettitle">', 'after_title' => '</h4><div class="widget-inner">' ) );
Woocommerce hooks and customization.
All of the codes below will be place on your function.php Change number of products displayed per page add_filter( 'loop_shop_per_page', create_function( '$cols', 'return 1000;' ), 20 ); Archive columns global $woocommerce_loop; $woocommerce_loop['columns'] = 4; // Change the product category list column to 4. Archive columns with body class add_filter('body_class','archive_columns'); function archive_columns($classes) { global $woocommerce_loop; $classes[]…
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….
WordPress get user info
Code below is to get current user ID. $user_ID = get_current_user_id(); Code below is to get all user meta. $user_meta = array_map( function( $a ){ return $a[0]; }, get_user_meta( $user_ID ) ); echo $user_meta[last_name]; echo $user_meta[description]; Output : Development Lorem ipsum dolor sit amet, nunc arcu urna, id donec. Sample array. Array ( [first_name] =>…


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