WordPress

  • Extend Woocommerce Registration form fields

    As like WordPress, Woocommerce Registration form fields are the same – User email & Password. Additionally, WC sometime just use the Email field only. This article describes how you can add additional registration form fields to the WC’s registration form. In…

  • Categories, Tags, Terms Custom Order

    WordPress doesn’t allow to retrieve categories or terms order by id. You have probably seen, while doing a post query ( get_post(), WP_Query() ), if we set post__in argument with an array of post id, the query exactly order the…

  • Live Composer – Front-End Drag-Drop Content Creator WordPress Plugin

    Visual composer made it far easy for people who do not have programming knowledge. Even having programming knowledge, people prefer to use Visual Composer to save time, and make the task easy and consistence. On 18 January 14, a new…

  • Using Checkbox for post tag & non hierarchical taxonomies

    The article describe how to make term (ex: post tag) metabox a checkbox list rather than name input. So terms can be selected as like categories. This does work with Custom Taxonomies too. Non hierarchical taxonomy are those who doesn’t…

  • WordPress Plugin page without showing in admin menu

    To exclude Your Plugin page link from wp-admin menu, simply register a menu leaving the parent menu slug empty or null. Template and load plugin page hook will be still available

  • WordPress Multiple Post Type Loop & Pagination by Shortcode

    This article describe how to create multiple post loop with pagination by shortcode. You might have already know how to create post list with shortcode, here i am extending that with multiple occurrence and pagination. Multiple Post Type Loop &…

  • WordPress Page Custom Query Variable & Parameter

    Extend WordPress Page with Custom Query Variable. Set or get parameter variables using set_query_var & get_query_var. Use parse_request to filter values

  • Using Stylesheet, JavaScript Scripts for WordPress Widget

    CSS and Javascript Scripts for Widgets can be used based on widget availability. If you have created a custom widget and need to load stylesheet only if it active on front end, you will have to use is_active_widget WordPress function…

  • Extending WordPress Registration Fields

    WordPress has two registration fields for the default form, email and username. If you need more information, you could use plugins ofcourse. But for some simple fields such as a Name or Full name or Age of the registrants, you…

  • Facebook Page Like Count WordPress Shortcode

    The easiest way to show your facebook page like count is to use the facebook like button. As it comes with a limited module and not show only the number count rather than adding a like or recommend text, somewhere…


Freelance

Code Snippets

  • Hex color validation with regex

    Php code for validating hex color

  • PHP Regular Expression Character Definition

    To user PHP regular expression with preg_match, preg_replace or other preg_ function, one should understand the characters that are used. Below listed all of the characters that are used in regex. List of Regular Expression Characters ^ // Match the…

  • How to check & increase PHP memory usage

    To check PHP menory usage function display_used_memory() { $m = memory_get_usage(); $d = 1024 * 1024; echo number_format( $m / $d, 2 ).”MB”; } put display_used_memory() as the end of your PHP file. To increase PHP memory usage if( !ini_get(…

  • Display Twitter Bootstrap Dropdown on hover by CSS or jQuery

    Want to display Twitter Bootstrap Dropdown on hover ? Here’s are some solutions. It can be done using CSS, jQuery Code or a jQuery Plugin

  • JavaScript Regular Expression

    JavaScript Regular Expressions are quite same as PHP Regular Expressions. Syntax var check = /pattern/modifiers; pattern specifies the pattern of an expression modifiers specify if a search should be global, case-sensitive, etc. Modifiers Modifiers are used to perform case-insensitive and…

  • JavaScript debugging function similar to PHP var_dump / print_r

    Debug JavaScript array or object as like PHP’s print_r or var_dump function. create your own javascript debugging function