Sunday, August 23, 2015

Wordpress- My eight wordpress plugins are on wordpress community.

My eight wordpress plugins are on wordpress community.

1. Custom taxonomy meta :Plugin to add custom meta fields within built in and custom taxonomies. Simply add the desired fields by going through WP-admin -> Settings ->Taxonomy Meta .
2. Custom taxonomy Image : Custom Taxonomy Image Plugin allow you to add image with category/taxonomy.
3. Client Testimonial : Display client testimonial with slide previous and next features.
4. Vertical Carousel :Display vertical carousel slider with the help of a shortcode. Using shortcode ['vertical-carousel-slider'] , we can show carousel slider on page.
5. Client Logo Carousel :Display client logos responsive carousel with the help of a shortcode in editor as well as template page. Having different carousel settings.
6. Enable/Disable Auto Login when Register :The plugin provides feature to enable/disable auto login when user register .
7. Simple Login Form :Put simple login form on page or template using shortcode .
8. Simple Registration Form :This plugin allows users to put simple registration form on page , post or template using shortcode

9. Popup Maker : The most versatile popup plugin for WordPress!

Friday, August 14, 2015

Wordpress- hook to auto login after registration

Wordpress- auto login after registration

function _new_user_auto_log_in($user_id){
    $secure_cookie = is_ssl();
    $secure_cookie = apply_filters('secure_signon_cookie', $secure_cookie, array());
    global $auth_secure_cookie;
    $auth_secure_cookie = $secure_cookie;
    wp_set_auth_cookie($user_id, true, $secure_cookie);
    $user_info = get_userdata($user_id);
    do_action('wp_login', $user_info->user_login, $user_info);


add_action('user_register', '_new_user_auto_log_in');

Thursday, August 13, 2015

jQuery- time clock singapre

<script src=""></script>
<?php date_default_timezone_set( 'Asia/Singapore' ) ;?>
<?php $year =  date("Y"); ?>
<?php $month = date("m"); ?>
<?php $day = date("d"); ?>
<?php $hour = date("H"); ?>
<?php $minute = date("i"); ?>
<?php $second = date("s"); ?>
var d = new Date('<?php echo $year;?>', '<?php echo $month;?>', '<?php echo $day;?>', '<?php echo $hour;?>', '<?php echo $minute; ?>', '<?php echo $second; ?>') ;
setInterval(function() {
        d.setSeconds(d.getSeconds() + 1);
        //jQuery('#singapore_time').text((d.getHours() +':' + d.getMinutes() + ':' + d.getSeconds() ));
    }, 1000);


<div id="singapore_time"></div>

Monday, August 10, 2015

Wordpress- get facebook like count by url

Wordpress-  get facebook like count by url

$link   = get_permalink( $post->ID );
// make the call
$call   = '' . urlencode( $link ) . '%27';
// do the call
$rmget  = wp_remote_get( $call, array( 'sslverify' => false ) );
// error. bail.
if( is_wp_error( $rmget ) ) {
    return false;
// parse return values
$return = json_decode( $rmget['body'] );
// bail with no decoded
if ( empty( $return ) || empty( $return->data ) || empty( $return->data[0] ) || empty( $return->data[0]->like_count ) ) {
    return false;

// get the count
echo 'CONT is ', $count  = $return->data[0]->like_count;

Sunday, August 2, 2015

WordPress- add feature Image column in WP Admin for custom posts /poost/page

// Add the posts and pages columns filter. They can both use the same function.
    add_filter('manage_posts_columns', 'tcb_add_post_thumbnail_column', 5);
    add_filter('manage_pages_columns', 'tcb_add_post_thumbnail_column', 5);
    add_filter('manage_custom_post_columns', 'tcb_add_post_thumbnail_column', 5);

    // Add the column
    function tcb_add_post_thumbnail_column($cols){
      $cols['tcb_post_thumb'] = __('Featured Image');
      return $cols;

    // Hook into the posts an pages column managing. Sharing function callback again.
    add_action('manage_posts_custom_column', 'tcb_display_post_thumbnail_column', 5, 2);
    add_action('manage_pages_custom_column', 'tcb_display_post_thumbnail_column', 5, 2);
        add_action('manage_custom_post_column', 'tcb_display_post_thumbnail_column', 5, 2);

    // Grab featured-thumbnail size post thumbnail and display it.
    function tcb_display_post_thumbnail_column($col, $id){
        case 'tcb_post_thumb':
          if( function_exists('the_post_thumbnail') )
          echo the_post_thumbnail( 'featured-thumbnail' );

            echo 'Not supported in theme';

Saturday, August 1, 2015

Wordpress- My third plugin is approved by wordpress community

WordPress- My third plugin ''WP Client Testimonial' is now on wordPress community

Again a good news within month that my third wordPress plugin is approved on wordpress community.
It is a plugin that allow to display client testimonial with slide previous and next features. .

Detail, you can see clicking on WP Client Testimonial 

Be free to post your comments /reviews , if you are getting any help or suggestion.