Search User by Display Name in WordPress Sitewide

Posted by & filed under Tips and Tricks, wordpress.

In wordpress in backend or if you use wordpress user query ‘WP_User_Query’ by default it will not search by display_name even if you add display_name in “search_columns” field of WP_User_Query So, this can be achieved by this small filter https://gist.github.com/manchumahara/9910185 (after add this code now if you search in your wordpress admin panel for user… Read more »

Category Post Count in WordPress (Custom Taxonomy with Custom Post Type)

Posted by & filed under Tips and Tricks, wordpress.

Let me explain my need in short: I want to show post count for any category/any custom taxonomy registered for any custom post type. I searched wordpress forums and in google, found some solutions using http://wordpress.org/support/topic/category-post-count-2?replies=6 http://wordpress.org/support/topic/category-post-count?replies=6 http://www.intechgrity.com/get-post-count-of-a-category-including-sub-categories-in-wordpress/# http://www.web-templates.nu/2008/09/21/get_category_count/index.html Nothing helped me such way, so I managed my own way with my little knowledge. wp_get_productcat_postcount($id,… Read more »

Google Plus Comment for WordPress

Posted by & filed under Tips and Tricks, wordpress, Wordpress Plugin.

Google Plus Introduced Social comment plugin(unofficially). so I just made a small shortcode based plugin for wordpress to test the baby. BTW, I noticed about this from google plus. Download from bellow: Demo: Please check here . Shortcode: [gpluscomment] For more technical people ‘url’ => ”, // leave empty for current post ‘width’ => ’500′,… Read more »

jQuery TinyScrollbar doesn’t work in hidden container or tab or div : Why ?

Posted by & filed under Java script, Tips and Tricks.

Q: jQuery TinyScrollbar doesn’t work in hidden container or tab or div : Why ? Answer: I think this is problem  with jquery or as how the DOM works. When any parent div is hidden using css property display:block;  jquery can not determine the width, height etc for any child element (example div)  and this… Read more »