using themename_the_custom_logo() in template-tags?

first of all why he did not use the_custom_logo() method itself in the header file This function checks that the the_custom_logo function exists for backwards compatibility, so that the function works on WordPress versions older than 4.5. The reason this is done in inside twentysixteen_the_custom_logo() is so the theme can just use a single function … Read more

Create dynamic logo carousel without using any plugin

You can create a custom post type for the logos as shown below, function create_post_type() { register_post_type( ‘logo’, array( ‘labels’ => array( ‘name’ => __( ‘Logos’ ), ‘singular_name’ => __( ‘Logo’ ), ‘add_new’ => __( ‘Add New’ ), ‘add_new_item’ => __( ‘Add New Logo’ ), ‘featured_image’ => __( ‘Add Image’ ), ‘edit_item’ => __( ‘Edit … Read more

what is `get_section()` and how to use it?

If you check the code reference entry for get_section(), you can see its description: Retrieve a customize section. “customize” means the customizer, the theme handbook has a complete chapter for using the customizer API, and one paragraph explaining sections: Sections are UI containers for Customizer controls. While you can add custom controls to the core … Read more

How to display author meta and count numbers for each user in comment.php?

Getting user’s metas values : $user_meta = get_user_meta($user_id, ‘YOUR_META_KEY’, TRUE); //You have to set the $user_id / And the “YOUR_META_KEY” can be description, name, custom meta… To get user’s comments count function commentCount($userId = null) { global $wpdb; if($userId == null) return 0; $count = $wpdb->get_var(‘ SELECT COUNT(comment_ID) FROM ‘ . $wpdb->comments. ‘ WHERE user_id … Read more