Get the current post parent category ID
How to get the current post parent category ID? Just copy the codes below and paste this your template.
global $post; $category = get_the_category( get_the_ID() ); $parent = $category[0]->term_id
INSTALL WORDPRESS | WEB DEVELOPMENT | WEBSITE | XAMP | HOW TO CREATE A WEBSITE. EDUCATIONAL VIDEO PARA SA GUSTO TUMUKLAS NG MGA BAGONG KAALAMAN KUNG PANU GUMAWA NG WEBSITES. PAKI-SHARE PO VIDEO NG MARAMI TAYONG MATULUNGAN AT MABIGYAN NG ONLINE SKILLS. MARAMI PA TAYONG PWEDE IBAHAGI SA INYO. LINKS: PERSONAL WEBSITE: https://www.anthonypagaycarbon.com/ XAMP DOWNLOAD:…
{% if page.handle == 'sweet-dolls' %} {{ 'sweetdoll.css' | asset_url | stylesheet_tag }} {% endif %} {% if page.handle == 'tous-summer' %} {% section 'toussummer1' %} {% endif %} <script> var custom_timeout_function = ( function () { var timers = {}; return function (callback, ms, uniqueId) { if (!uniqueId) { uniqueId = "Don't call this…
[wdes-column-generator]
Hello guys, have you experience this issue on your current theme? WooCommerce archive, and single product pages does not displaying the default layout? Details show in one paragraph instead of grid? That means your current theme does not support Woocommerce and that’s what were going to do now. Just add the codes below and your…
Update via wp-config.php define('WP_HOME', 'http://www.example.local'); define('WP_SITEURL', 'http://www.example.local'); Update via functions.php update_option('siteurl','http://www.example.local'); update_option('home','http://www.example.local');
Copy this code and paste to your functions.php function wpa54064_inspect_scripts() { global $wp_scripts; print_r($wp_scripts); // this will show all enqueue’s script } add_action( ‘wp_head’, ‘wpa54064_inspect_scripts’ );