Product categories WordPress codex
How to get current product category slug?
global $wp_query; echo $wp_query->query_vars['product_cat'];
How to get current product category slug?
global $wp_query; echo $wp_query->query_vars['product_cat'];
Warning: rmdir( … ), No such file or directory Fatal error: Allowed memory size of 134217728 bytes exhausted (tried to allocate 20480 bytes) in /home/username/public_html/wp-includes/meta.php on line 1078 You might interested to check this error master Gravity Forms Media Upload Field for BuddyPress Complete Tutorial Also offering hosting and domain registration, chep but trusted –…
How to display Youtube video’s featured image ( thumbnail image )? We have numbered of ways to display the Youtube video’s featured image or thumbnail image. We want to display image instead of Youtube videos most specially in the categories right? In this examples, https://www.anthonypagaycarbon.com/category/entertainment/ we will see I’m using image instead of the video…
Separated number in comma and decimal point using PHP or JS number format. Commonly used in the price format and number separator. Hopefully this can help you. PHP: Found this post https://www.w3schools.com/php/func_string_number_format.asp and the codes below is the sample usage of the PHP code. echo number_format("1000000"); // output will be 1,000,000 echo number_format("1000000",2); // output…
Make sure you have the same file path as the image below. background-image css example : div { background-image: url('../../uploads/2014/07/bg-css.jpg' ); }
Before we start please do support my Youtube channel Web Developer Green – https://www.youtube.com/channel/UCSilTsUejzMeHJ8rSvp2K_g master, thank you! HTML CODE <div class="r-faq"> <div class="r-wrap"> <h2>Top Questions, our customers Ask</h2> <div class="faq-q active">what is slow roasting? <i class="fas fa-plus"></i></div> <div class="faq-a" style="display:block;">Slow roasting is always better. The slower we bring the beans to temperature, the more consistent…
How to get paid membership pro membership level ID? Copy the codes below. function get_user_member_level_id( $userid ){ global $wpdb; return $wpdb->get_var( "SELECT membership_id FROM wp_pmpro_memberships_users WHERE user_id = $userid" ); } echo get_user_member_level_id( $userid );